FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17551&edit=1

ID: 17551
Updated by: imp@lx-soft.com
Reported By: imp at lx-soft dot com
Summary: Trailing char added after decryption
-Status: Open
+Status: Duplicate
Type: Bug
Package: Crypt_Blowfish
Operating System: Debian Lenny
Package Version: 1.0.1
PHP Version: 5.2.6
Roadmap Versions:
New Comment:

-Status: Open
+Status: Duplicate
Dup of 4747.

Sorry to have re-open this "false bug". I'm not so familiar with this
bug tracking system


Previous Comments:
------------------------------------------------------------------------

[2010-07-02 07:35:10] vink

Description:
------------
When you decrypt a string, a trailing char is added at the end of the
string.

If it bug, the supplied script will show two different strings.

Test script:
---------------
<?
include 'Crypt/Blowfish.php';

$key = 'some secret key!';
$text = 'this is some example plain text';

$bf = new Crypt_Blowfish($key);
$encrypted = $bf->encrypt($text);
$plaintext = $bf->decrypt($encrypted);
echo "decrypt(crypt('$text') = '$plaintext'<br/>\n";
?>

Expected result:
----------------
decrypt(crypt('this is some example plain text') = 'this is some example
plain text'

Actual result:
--------------
decrypt(crypt('this is some example plain text') = 'this is some example
plain text?'

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJul 2, '10 at 6:52a
activeJul 2, '10 at 6:52a
posts1
users1
websitepear.php.net

1 user in discussion

Imp: 1 post

People

Translate

site design / logo © 2022 Grokbase