Skip to content

Instantly share code, notes, and snippets.

@smirn0v
Created December 4, 2018 18:00
Show Gist options
  • Save smirn0v/43d34a9466fea330d5c41dfe3b429175 to your computer and use it in GitHub Desktop.
Save smirn0v/43d34a9466fea330d5c41dfe3b429175 to your computer and use it in GitHub Desktop.
Encrypt
% tar cz folder_to_encrypt | \
openssl enc -aes-256-cbc -e > out.tar.gz.enc
Decrypt
% openssl enc -aes-256-cbc -d -in out.tar.gz.enc | tar xz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment