Here, so I remember it, is the command for doing this:
openssl enc -des -a -e -pass pass:PASSWORD -in INFILE -out OUTFILEIf you leave out INFILE or OUTFILE, it defaults to stdin and stdout. So you can do:
echo "This is a secret" | openssl enc -des -a -e -pass pass:PASSWORDand the encrypted version will be written to the terminal.
To decrypt:
openssl enc -des -a -d -pass pass:PASSWORD -in ENCRYPTED -out DECRTYPEDOr, again:
echo "U2FsdGVkX1+Kqcs+25e+6MiQBr4NT8ykx3POhv9yAf9gnvSn4D2L0A==" | openssl enc -des -a -d -pass pass:PASSWORDAnd again you'll get the decrypted version written to the terminal.
No comments:
Post a Comment
Comments welcome, but they are expected to be civil.
Please don't bother spamming me. I'm only going to delete it.