Skip to content

Instantly share code, notes, and snippets.

@xman1980
Last active November 30, 2015 20:16
Show Gist options
  • Save xman1980/1596157fd5c296a2dd39 to your computer and use it in GitHub Desktop.
Save xman1980/1596157fd5c296a2dd39 to your computer and use it in GitHub Desktop.
password_tar_gz
Encrypt
% tar cz folder_to_encrypt | \
openssl enc -aes-256-cbc -e > out.tar.gz.enc
Decrypt
% openssl aes-256-cbc -d -in out.tar.gz.enc | tar xz
Or using gpg
% gpg --encrypt out.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment