Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 603 Bytes

File metadata and controls

22 lines (17 loc) · 603 Bytes

Text Encryption Decryption

  • Text Encrypt With Interactive Password

echo -n "That's the text"|openssl enc -e -aes-256-cbc -a
  • Text Decrypt With Interactive Password

echo "U2FsdGVkX1/QsvpX4PNADJT3rMWAMJpPRjYOUw4kRgA="|openssl base64 -d|openssl enc -d -aes-256-cbc
  • Text Encrypt Command Line Password

echo -n "That's the text"|openssl enc -e -aes-256-cbc -a -k "MySuperPassword"
  • Text Decrypt Command Line Password

echo "U2FsdGVkX18tLihnkrrk2lE/lz4FzPMRUToYQjfCL8s="|openssl base64 -d|openssl enc -d -aes-256-cbc -k "MySuperPassword"