Forked from robert2d/bash-cli-openssl-stdin-encryption
Created
February 2, 2018 16:35
-
-
Save f0r34chb3t4/afd07038abb761d92814cf03f20ee80b to your computer and use it in GitHub Desktop.
Bash $STDIN Encryption with openssl and aes256
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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