Как зашифровать файл в Linux

http://belgorod.lug.ru/wiki/index.php/Создание_шифрованного_файла_в_Linux

шифровать
openssl enc -e -aes-256-cbc -k ПАРОЛЬ -in ./file -out ./file.encoded
или
cat ./file | openssl enc -e -aes-256-cbc -k ПАРОЛЬ > file.encoded

дешифровать
openssl enc -d -aes-256-cbc -k ПАРОЛЬ -in ./file -out ./file.encoded
или
cat ./file.encoded | openssl enc -d -aes-256-cbc -k ПАРОЛЬ > ./file

One thought on “Как зашифровать файл в Linux

Leave a Reply

Ваш адрес email не будет опубликован. Обязательные поля помечены *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>