Last active
April 20, 2021 18:10
-
-
Save dwallraff/823c05cb69744a9c94101a0a2053381e to your computer and use it in GitHub Desktop.
Encrypted tarball
This file contains hidden or 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 (GPG) | |
| tar hcz <dir> | gpg --batch --cipher-algo AES256 --symmetric --output <filename>.tar.gz.enc | |
| ## Decrypt (GPG) | |
| gpg --no-verbose --quiet --batch --cipher-algo AES256 --decrypt <filename>.tar.gz.enc | tar xvz | |
| ## Encrypt (SSL) | |
| tar cz <dir> | openssl enc -e -aes-256-cbc -salt -md sha256 -out <filename>.tar.gz.enc | |
| ## Decrypt (SSL) | |
| openssl enc -d -aes-256-cbc -salt -md sha256 -in <filename>.tar.gz.enc | tar xvz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment