Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ddepaoli3/7b3e916d5052a0ce701643366847552a to your computer and use it in GitHub Desktop.
Save ddepaoli3/7b3e916d5052a0ce701643366847552a to your computer and use it in GitHub Desktop.
Bash $STDIN Encryption with openssl and aes256
# Encrypt in base64 output STDIN and provide a password(prompt)
echo "message" | openssl enc -base64 -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