Using gpg
1 2 3 4 5 6 |
# compress and encrypt gpg -c filename >> Enter password # filename.gpg is encrypted file # decrypt gpg -d filename.gpg |
http://superuser.com/questions/162624/how-to-password-protect-gzip-files-on-the-command-line