Skip to content

Instantly share code, notes, and snippets.

@hunzo
Created November 12, 2021 04:18
Show Gist options
  • Save hunzo/afe300ccdb59cab7c99bbc82757a47dc to your computer and use it in GitHub Desktop.
Save hunzo/afe300ccdb59cab7c99bbc82757a47dc to your computer and use it in GitHub Desktop.
# encrypt:
openssl enc -aes-256-cbc -pass pass:123456 -md sha512 -pbkdf2 -iter 100000 -salt -in message.txt -out message.bin
# decrypt:
openssl enc -d -aes-256-cbc -pass pass:123456 -md sha512 -pbkdf2 -iter 100000 -salt -in message.bin -out message.dec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment