note 99188 added to function.openssl-encrypt
| From: | public at grik dot net | Date: | Mon, 02 Aug 2010 00:25:09 +0000 |
| Subject: | note 99188 added to function.openssl-encrypt | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171327@lists.php.net to get a copy of this message | ||
In 5.3.3 they added a new parameter, string $iv (initialization vector)
Real parameters are:
string openssl_encrypt ( string $data , string $method , string $password, bool $raw_output = false,
string $iv )
If $iv is missing, a warning is issued: "Using an empty Initialization Vector (iv) is
potentially insecure and not recommended".
If $iv is too short, another warning:
"IV passed is only 3 bytes long, cipher expects an IV of precisely 8 bytes, padding with
\0"
same IV should be used in openssl_decrypt()
----
Server IP: 213.186.192.247
Probable Submitter: 94.179.13.8
----
Manual Page -- http://www.php.net/manual/en/function.openssl-encrypt.php
Edit -- https://master.php.net/note/edit/99188
Del: integrated -- https://master.php.net/note/delete/99188/integrated
Del: useless -- https://master.php.net/note/delete/99188/useless
Del: bad code -- https://master.php.net/note/delete/99188/bad+code
Del: spam -- https://master.php.net/note/delete/99188/spam
Del: non-english -- https://master.php.net/note/delete/99188/non-english
Del: in docs -- https://master.php.net/note/delete/99188/in+docs
Del: other reasons-- https://master.php.net/note/delete/99188
Reject -- https://master.php.net/note/reject/99188
Search -- https://master.php.net/manage/user-notes.php