Re: mcrypt 2.4.x - trouble with small data fields?
| From: | Steve Yates | Date: | Wed, 04 Dec 2002 05:39:10 +0000 |
| Subject: | Re: mcrypt 2.4.x - trouble with small data fields? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126940@lists.php.net to get a copy of this message | ||
>Is there a minimum field size for using mcrypt?
Boy I feel dumb now. :) My answer was in my post. Mcrypt returns a
string that is usually longer than the original string, since the return has
to be a multiple of the block size used. So a 2-character string takes
"blocksize" characters when encrypted. Mcrypt also apparently needs the
extra characters when decrypting.
- Steve Yates
- If at first you don't succeed, lower your standards.
~ Taglines by Taglinator - www.srtware.com ~