Skip to content

Instantly share code, notes, and snippets.

@miladhub
Created September 13, 2019 10:41
Show Gist options
  • Save miladhub/8f42702eddc5f53b6af9530f667ffceb to your computer and use it in GitHub Desktop.
Save miladhub/8f42702eddc5f53b6af9530f667ffceb to your computer and use it in GitHub Desktop.
openssl encrypt / decrypt
$ echo "foobar" | openssl enc -aes-256-cbc -e -a -salt -k foobar
U2FsdGVkX1+CaU92AZ1/LHNEe3rdU0EV3/AImqzYmWg=
$ echo U2FsdGVkX1+CaU92AZ1/LHNEe3rdU0EV3/AImqzYmWg= | openssl enc -aes-256-cbc -d -a -k foobar
foobar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment