Saturday, August 13, 2011

Encrypt a file with a password

This will add an encrypted file called [filename].gpg.
gpg --cipher-algo AES -c [filename]
(passphrase will be prompted) 
This will create the decrypted file called [filename].
gpg -o [filename] -d [filename].gpg

No comments:

Post a Comment