RE: [PHP] Re: Mcrypt functions

2003-06-04 Thread Daniel Rychlik
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

RE: [PHP] Re: Mcrypt functions

2003-06-04 Thread Jay Smith
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

RE: [PHP] Re: Mcrypt functions

2003-06-04 Thread Daniel Rychlik
;- Encrypted Data..."; $decrypted = mcrypt_ecb (MCRYPT_BLOWFISH, $key, $input, MCRYPT_DECRYPT, $iv); echo $decrypted, "<- Decrypted data..."; -Original Message- From: Jay Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 1:58 PM To: [EMAIL PROTECTED] Sub

[PHP] Re: Mcrypt functions

2003-06-04 Thread Jay Smith
Daniel Rychlik wrote: > Hello, > > I have been playing with the mycrypt function. Im having a bit of > trouble understanding why it is important to use a vector IV. > > I was wandering if there is a reasonably powerful encryption algorithm. > That uses a key only instead of getting the block si