Created
November 18, 2018 20:56
-
-
Save b13bs/2ca386feeb8e6bef883aafb21465d055 to your computer and use it in GitHub Desktop.
Openssl symetric encryption
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
### TEXT FILE | |
# encrypt | |
openssl aes-256-cbc -a -salt -in secrets.txt -out secrets.txt.enc | |
# decrypt | |
openssl aes-256-cbc -d -a -in secrets.txt.enc -out secrets.txt.new | |
### TAR | |
# 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