Re: [PHP] bug? php4 with libmcrypt-2.2.7 From: Sascha Schumann (sascha <email protected>)
Date: 08/15/00

On Tue, 15 Aug 2000, Remco Chang wrote:

> thank you so very much for replying back to my message. i really
> appreciate the time/effort.
>
> i'm not ready to move onto 4.0.2 until the people at PHP have confirmed
> that it is a stable release... which, i guess, means that libmcrypt-2.4.*
> is out of the equation.
>
> if you guys have not had any problem with it, could i ask you to do a
> simple test? please run the following script and lemme know what is the
> output that you get?
>
> <?php
> {
> $cipher = MCRYPT_3DES;
> $key = "magic_key";
> $input = "blahblah";
>
> echo (mcrypt_get_cipher_name ($cipher)."<br>");
> echo (mcrypt_get_block_size($cipher)."<br>");
>
> $en_data = mcrypt_ecb ($cipher, $key, $input, MCRYPT_ENCRYPT);
> echo "en_data:$en_data<br>";
>
> $de_date = mcrypt_ecb ($cipher, $key, $en_data, MCRYPT_DECRYPT);
             ^

> echo "de_data:$de_data<br>";
                           ^
   
    This is usually called a "typo."

    - Sascha

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>