Wiki2
EncryptFiles

Encrypting files

Using Public Key Encryption, pgp is the option. But this is rather complicated.

For regular Symmectic Key Encryption either pgp or OpenSSL can be used.

Using OpenSSL …

openssl enc -aes-256-cbc -salt -in hello.txt -out hello.txt.aes
<password>
openssl enc -aes-256-cbc -d -salt -in hello.txt.aes -out hello.txt
<password>

Using pgp …

gpg -c file.txt
<password>
gpg file.txt.gpg
<password>

Reference