Skip to content

Instantly share code, notes, and snippets.

@rmrfslashbin
Created March 28, 2023 17:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
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