Created
May 23, 2015 18:39
-
-
Save pstaender/29648dab28ce1c6a10a4 to your computer and use it in GitHub Desktop.
Crypt and Decrypt tar gz folder (http://superuser.com/a/162628)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# 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