Created
July 3, 2021 13:25
-
-
Save thiagosf/b2fdd94cb4286c607f24e7b64efa5f7c to your computer and use it in GitHub Desktop.
Encrypt/decrypt a string using openssl
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
# reference: https://stackoverflow.com/a/47517988/6649757 | |
echo 'foo' | openssl aes-256-cbc -a -salt | |
echo 'U2FsdGVkX1/QGdl4syQE8bLFSr2HzoAlcG299U/T/Xk=' | openssl aes-256-cbc -a -d -salt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment