Skip to content

Instantly share code, notes, and snippets.

@oliverdaff
Created November 20, 2019 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oliverdaff/c8305a3745e6a238bcde10d303f0e3f8 to your computer and use it in GitHub Desktop.
Save oliverdaff/c8305a3745e6a238bcde10d303f0e3f8 to your computer and use it in GitHub Desktop.
encrypt a dir with tar and open ssl
## Encrypt
tar cz folder | openssl aes-256-cbc -salt -pbkdf2 -e > out.tar.gz.enc
## Decrypt
openssl aes-256-cbc -d -salt -pbkdf2 -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