ID: 14606 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: mcrypt related Operating System: redhat 7.2 PHP Version: 4.1.0 New Comment:
I first thought of a problem with libmcrypt itself... According to its author, 3DES has not changed (see below). I'll probably have to decrypt my data with php-4.0.6-libmcrypt-2.2.7 and re-encrypt it with php-4.0.6-libmcrypt-2.4.18... Grrreat :-) ----- Original Message ----- From: "Nikos Mavroyanopoulos" <[EMAIL PROTECTED]> To: "Jean-Francois LE CAM" <[EMAIL PROTECTED]> Sent: Wednesday, December 19, 2001 6:16 PM Subject: Re: libmcrypt question (help!) > On Wed, 19 Dec 2001 18:19:51 +0100 "Jean-Francois LE CAM" ><[EMAIL PROTECTED]> wrote: > > > Hi Nikos, > > I have been using libmcrypt for quite a long time now together with php. > > My running conf is php-4.0.6 / libmcrypt-2.2.7 > > Trying to install php-4.1.0, I was said to upgrade to libmcrypt-2.4 (because > > of a bug that will be fixed in php-4.1.1). > > Is it possible that the TripleDES decryption does not give the same result > > under libmcrypt-2.2.7 and libmcrypt-2.4.18 ? > > That is what I suspect, and it would be rather baaaad for me since I have a > > database containing data encrypted with 2.2.7 that I now wish to use with > > 2.4.18. > > No 3DES has not changed at all. But you may want to play with the > mcrypt functions in php (to get them used in a compatible way). > I do not know more, you'd better ask in a php group or something. Previous Comments: ------------------------------------------------------------------------ [2001-12-19 14:26:17] [EMAIL PROTECTED] It is possible a problem in libmcrypt itself . A lot has changed in there that my have broke backwrd compability. It's not a PHP bug, because nothing has changed regarding to this between php 4.0.6 and 4.1.0. I'm closing this one. Derick ------------------------------------------------------------------------ [2001-12-19 12:33:01] [EMAIL PROTECTED] Using exactly the same input data, the following lines won't return the same decryption result : php-4.0.6 / libmcrypt-2.2.7 : mcrypt_ofb("MCRYPT_TripleDES",$realkey,$ct,MCRYPT_DECRYPT,$iv); php-4.1.0 / libmcrypt-2.4.18 : mcrypt_ofb(MCRYPT_TripleDES, $realkey, $ct, MCRYPT_DECRYPT, $iv); I have data encrypted with libmcrypt-2.2.7 that I want to use with libmcrypt-2.4.18, but I can not !!! Thanks in adance, JF ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14606&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]