Skip to content

Instantly share code, notes, and snippets.

@robert2d
Last active March 2, 2022 12:18
Show Gist options
  • Save robert2d/e31846fc9a954aa2609d to your computer and use it in GitHub Desktop.
Save robert2d/e31846fc9a954aa2609d to your computer and use it in GitHub Desktop.
Bash $STDIN Encryption with openssl and aes256
# Encrypt STDIN and provide a password(prompt)
echo "message" | openssl enc -aes-256-cbc -a
# Decrypt STDIN and provide a password(prompt)
echo "encrypted" | openssl enc -aes-256-cbc -a -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment