Created
September 18, 2019 08:35
-
-
Save Bogdaan/e80c7694986bc68b75c8ea0594b56ea7 to your computer and use it in GitHub Desktop.
Creating password protected gzip files from command line
This file contains hidden or 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
# encrypt | |
tar cz my_folder/ | openssl enc -aes-256-cbc -e > encrypted.tar.gz.enc | |
# decrypt | |
openssl aes-256-cbc -d -in encrypted.tar.gz.enc | tar xz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment