Encryption:
openssl enc -aes-256-cbc -salt -pass file:password.txt -in message.txt -out message.enc
Decrypt:
openssl enc -aes-256-cbc -d -salt -pass file:password.txt -in message.enc -out message.dec
If the first line of the file password.txtcontains your password.
source
share