Padding with mcrypt_generic
| From: | Ben Sinclair | Date: | Mon, 14 Jan 2002 23:17:36 +0000 |
| Subject: | Padding with mcrypt_generic | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-80504@lists.php.net to get a copy of this message | ||
I'm trying to use mcrypt_generic and it works fine except it pads the data
with ^@'s when, according to the manual page, the length of the data is not
n * blocksize.
I've been trying to remove the padding from my decrypted data using
something like "$string = str_replace("^@","",$string);", but it
doesn't
seem to work right (^@ is a single character, not just "^" . "@").
Has anyone had to do this before and found a solution?
--
Ben Sinclair
ben@yourwebwill.com