Created
December 19, 2017 10:52
-
-
Save Kein1945/52f9d68652da2e7d1ad08017523c4ef3 to your computer and use it in GitHub Desktop.
Encrypt and decrypt with aes algorithm with openssl cli in bash
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() { | |
echo -n "$1" | openssl enc -e -aes-256-cbc -a -salt | |
} | |
decrypt (){ | |
echo "$1" | openssl enc -e -aes-256-cbc -a -d -salt | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment