Skip to content

Instantly share code, notes, and snippets.

@xxiz
Last active December 25, 2022 01:29
Show Gist options
  • Save xxiz/112b9fd9e1c0eb7a036648f274a34ffc to your computer and use it in GitHub Desktop.
Save xxiz/112b9fd9e1c0eb7a036648f274a34ffc to your computer and use it in GitHub Desktop.
encryption with tar & openssl
# encrypt
tar -cO a/ | openssl enc -aes-256-cbc -md md5 -pass pass:mypassword > a.bin
# decrypt
openssl enc -d -aes-256-cbc -md md5 -pass pass:mypassword -in a.bin | tar -x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment