PHP 4.0 Bug #4932 Updated: mcrypt_ecb will add \0 to decrypted
| From: | Bug Database | Date: | Fri, 16 Jun 2000 12:24:05 +0000 |
| Subject: | PHP 4.0 Bug #4932 Updated: mcrypt_ecb will add \0 to decrypted | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-21506@lists.php.net to get a copy of this message | ||
ID: 4932
Updated by: sas
Reported By: wico@cnh.nl
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
You are dealing with _block_ algorithms. All these algorithms deal with blocks of a fixed size. All
input and output is aligned to these block sizes. That means that you will have NUL bytes at the end
of $decrypt which need to be stripped before you can continue to use that string.
Full Bug description available at: http://bugs.php.net/version4/?id=4932