Created
February 3, 2020 12:14
-
-
Save michelep/9ab02bf5e11d2a4ee96ad33c903984aa to your computer and use it in GitHub Desktop.
Encrypt and decypt file using symmetric enctyption with 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 a file using a supplied password: | |
$ openssl enc -aes-256-cbc -salt -in file.txt -out file.txt.enc -k PASS | |
Decrypt a file using a supplied password: | |
$ openssl enc -aes-256-cbc -d -in file.txt.enc -out file.txt -k PASS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment