From ddcfad2b60455912aac4917cee120de4081ff4dd Mon Sep 17 00:00:00 2001 From: Nikos Mavroyanopoulos Date: Tue, 17 Oct 2000 19:46:22 +0000 Subject: [PATCH] Added a warning for not using ascii keys to mcrypt functions. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@34015 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/mcrypt.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/functions/mcrypt.xml b/functions/mcrypt.xml index 2e40511583..a38377e982 100644 --- a/functions/mcrypt.xml +++ b/functions/mcrypt.xml @@ -961,7 +961,9 @@ foreach ($modes as $mode) { Key is the key with which the data will be encrypted. If it's smaller that the required keysize, it - is padded with '\0'. + is padded with '\0'. It is better not to use ASCII strings for + keys. It is recommended to use the mhash functions to create a key + from a string. Data is the data that will be encrypted