PHP 4.0 Bug #4932: mcrypt_ecb will add \0 to decrypted

From: Date: Fri, 09 Jun 2000 14:49:15 +0000
Subject: PHP 4.0 Bug #4932: mcrypt_ecb will add \0 to decrypted
Groups: php.dev 
Request: Send a blank email to php-dev+get-20762@lists.php.net to get a copy of this message
From: wico@cnh.nl Operating system: linux PHP version: 4.0 Release Candidate 2 PHP Bug Type: Scripting Engine problem Bug description: mcrypt_ecb will add \0 to decrypted Hiya catched another one: <? $key = "test"; $data = "test"; $encrypted = mcrypt_ecb(MCRYPT_3DES, $key, $data, MCRYPT_ENCRYPT); $decrypt = mcrypt_ecb(MCRYPT_3DES, $key, $encrypted, MCRYPT_DECRYPT); echo "plop: ($decrypt) :plop"; ?> output: plop: (test should be plop: (test) :plop

« previous php.dev (#20762) next »