Skip to content

Instantly share code, notes, and snippets.

@thiagosf
Created July 3, 2021 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagosf/b2fdd94cb4286c607f24e7b64efa5f7c to your computer and use it in GitHub Desktop.
Save thiagosf/b2fdd94cb4286c607f24e7b64efa5f7c to your computer and use it in GitHub Desktop.
Encrypt/decrypt a string using openssl
# 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