I have a string to encyrpt:
$encryptThis = "Super Secret Text";
echo openssl_encrypt($encryptThis, 'aes-128-cbc', '1234', FALSE, 'F68A9A229A516752');
I then wget get the that php file and end up with what looks like a base64 string of characters.
When I try to decode it on the command line I get "error reading input file". The command I am using to try and decrypt is:
openssl aes-128-cbc -a -iv F68A9A229A516752 -d -in encrypted.txt -out decypted.txt
encrypted.txt is the file name that I saved the file I wget'ed to. What am I missing?