note 27388 added to function.mcrypt-generic
| From: | steve at teamITS dot com | Date: | Wed, 04 Dec 2002 05:15:24 +0000 |
| Subject: | note 27388 added to function.mcrypt-generic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-40325@lists.php.net to get a copy of this message | ||
The entire string returned by mcrypt_generic must be stored in a database for proper decryption
later, or the string will not entirely decrypt properly. If your original string is 10 characters
long and the block size is 8, you would need at least 16 characters in your database field. Note
the string returned by mdecrypt_generic will be 16 characters as well...use rtrim($str,
"\0") to remove the padding.
--
http://www.php.net/manual/en/function.mcrypt-generic.php
http://master.php.net/manage/user-notes.php?action=edit+27388
http://master.php.net/manage/user-notes.php?action=delete+27388
http://master.php.net/manage/user-notes.php?action=reject+27388