note 115930 added to function.mcrypt-encrypt
| From: | gm dot outside+php at gmail dot com | Date: | Wed, 15 Oct 2014 16:52:15 +0000 |
| Subject: | note 115930 added to function.mcrypt-encrypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200657@lists.php.net to get a copy of this message | ||
Please note that the following part of the documentation is no longer true (after commit: http://git.php.net/?p=php-src.git;a=commit;h=a861a3a93d89a50ce58e1ab1abef1eb501f97483):
> key
> The key with which the data will be encrypted. If it's smaller than the required keysize,
> it is padded with '\0'. It is better not to use ASCII strings for keys.
That commit changed the behaviour to be strict and if the keysize is smaller than the required size
a warning will be issued as follows:
Warning: mcrypt_encrypt(): Key of size 10 not supported by this algorithm. Only keys of size 16
supported in script.php on line 5
and the mcrypt_encode() will return failure.
----
Server IP: 72.52.91.14
Probable Submitter: 2001:44b8:4184:a400:6df6:2c5f:b67:eaa7
----
Manual Page -- http://php.net/manual/en/function.mcrypt-encrypt.php
Edit -- https://master.php.net/note/edit/115930
Del: integrated -- https://master.php.net/note/delete/115930/integrated
Del: useless -- https://master.php.net/note/delete/115930/useless
Del: bad code -- https://master.php.net/note/delete/115930/bad+code
Del: spam -- https://master.php.net/note/delete/115930/spam
Del: non-english -- https://master.php.net/note/delete/115930/non-english
Del: in docs -- https://master.php.net/note/delete/115930/in+docs
Del: other reasons-- https://master.php.net/note/delete/115930
Reject -- https://master.php.net/note/reject/115930
Search -- https://master.php.net/manage/user-notes.php