Skip to content

Instantly share code, notes, and snippets.

@xpl
Last active April 24, 2022 17:23
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 xpl/a445edd94687433c13631a5313886f58 to your computer and use it in GitHub Desktop.
Save xpl/a445edd94687433c13631a5313886f58 to your computer and use it in GitHub Desktop.
How to Encrypt/Decrypt A String

Encrypt

echo 'unencrypted' | openssl aes-256-cbc -a -salt -pbkdf2

Decrypt

echo 'encrypted' | openssl aes-256-cbc -d -a -pbkdf2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment