Skip to content

Instantly share code, notes, and snippets.

@Bogdaan
Created September 18, 2019 08:35
Show Gist options
  • Save Bogdaan/e80c7694986bc68b75c8ea0594b56ea7 to your computer and use it in GitHub Desktop.
Save Bogdaan/e80c7694986bc68b75c8ea0594b56ea7 to your computer and use it in GitHub Desktop.
Creating password protected gzip files from command line
# 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