note 32074 added to function.mcrypt-generic
| From: | pauls at sellingsource dot com | Date: | Thu, 15 May 2003 16:02:07 +0000 |
| Subject: | note 32074 added to function.mcrypt-generic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-48022@lists.php.net to get a copy of this message | ||
If you are encrypting binary and there is a null terminator partway through your encryption, you
will loose the rest of the string. A workaround is to base64_encode your binary string first.
We found this problem while trying to encrypt CC information. Some CC values would not decrypt
after we converted them to a binary string.
We were using the MCRYPT_RIJNDAEL_256 module to encrypt with.
Hope this helps someone.
--
http://www.php.net/manual/en/function.mcrypt-generic.php
http://master.php.net/manage/user-notes.php?action=edit+32074
http://master.php.net/manage/user-notes.php?action=delete+32074
http://master.php.net/manage/user-notes.php?action=reject+32074