I want to encrypt a bunch of strings using openssl. How do I pass plaintext in console to openssl (instead of specifying input file which has plaintext).
openssl man page has only these two options related to input/output:
-in <file> input file
-out <file> output file
Here is what I have tried so far:
This works fine,
openssl aes-256-cbc -a -K 00000000000000000000000000000000 -iv 00000000000000000000000000000000 -in plain.txt -out encrypted.txt
If I omit the -out parameter I get encrypted string in console,
openssl aes-256-cbc -a -K 00000000000000000000000000000000 -iv 00000000000000000000000000000000 -in plain.txt
But If I omit both -in and -out, I get an error - unknown option 'Encrypt ME',
openssl aes-256-cbc -a -K 00000000000000000000000000000000 -iv 00000000000000000000000000000000 "Encrypt ME"