Last active
December 25, 2022 01:29
-
-
Save xxiz/112b9fd9e1c0eb7a036648f274a34ffc to your computer and use it in GitHub Desktop.
encryption with tar & openssl
This file contains 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 -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