note 118832 added to function.openssl-encrypt
| From: | Geoff | Date: | Fri, 12 Feb 2016 22:21:19 +0000 |
| Subject: | note 118832 added to function.openssl-encrypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204932@lists.php.net to get a copy of this message | ||
Contrary to some of the other comments here, I'm not certain that Password is indeed being
improperly treated as the direct key. I say this because I've been passing random text values
into this parameter which would be invalid as hex input. It seems to be hashing the password I
provide, using what algorithm I do not know, because otherwise I'd expect it to throw an
exception instead of working as expected.
That said, I'm using openssl_decrypt() to decrypt data that was only encrypted with
openssl_encrypt(). I've not had to try to decrypt data where I do know for certain what the
direct key is to know if I have an issue with bad pad blocks or any other exceptions which would
indicate a key mismatch.
----
Server IP: 72.52.91.14
Probable Submitter: 72.24.104.194
----
Manual Page -- http://php.net/manual/en/function.openssl-encrypt.php
Edit -- https://master.php.net/note/edit/118832
Del: integrated -- https://master.php.net/note/delete/118832/integrated
Del: useless -- https://master.php.net/note/delete/118832/useless
Del: bad code -- https://master.php.net/note/delete/118832/bad+code
Del: spam -- https://master.php.net/note/delete/118832/spam
Del: non-english -- https://master.php.net/note/delete/118832/non-english
Del: in docs -- https://master.php.net/note/delete/118832/in+docs
Del: other reasons-- https://master.php.net/note/delete/118832
Reject -- https://master.php.net/note/reject/118832
Search -- https://master.php.net/manage/user-notes.php