Here,.. wait a minute. Let me pull my head out of my arse...
;o}
Many thanks Jay...
-daniel
-Original Message-
From: Jay Smith [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: Mcrypt functions
You're using the
You're using the same input for both encryption and decryption. Change the
decryption line to
$decrypted = mcrypt_ecb(MCRYPT_BLOWFISH, $key, $encrypted, MCRYPT_DECRYPT,
$iv);
srand() isn't doing anything here, you can get rid of it. Also, the IV does
nothing here, it is ignored in ECB mode. Try
I read more on vector IV and I agree with you. I've been reading this manual on
mcrypt_encrypt and _decrypt functions. I came up with this from what I read and
pretty much took the example. I have a problem with my decrypt statement. Im passing
what I believe is the correct params, but I cou
3 matches
Mail list logo