Skip to content

Instantly share code, notes, and snippets.

@rmrfslashbin
Created March 28, 2023 17:35
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 rmrfslashbin/0721e432b123b4631fb65fe4e0f75ab6 to your computer and use it in GitHub Desktop.
Save rmrfslashbin/0721e432b123b4631fb65fe4e0f75ab6 to your computer and use it in GitHub Desktop.
Quick text encryption via openssl

Quick text encryption

Do not use this in production. YYMV.

]$ echo -n 'this is the plaintext' | openssl aes-256-cbc -e -salt -pbkdf2 -iter 10000 -out ciphertext.enc -p

]$ cat ciphertext.enc|openssl enc -base64

]$ openssl aes-256-cbc -d -salt -pbkdf2 -iter 10000 -in ciphertext.enc -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment