[PHP] Re: Encrypt and decrypt cookie

2002-12-18 Thread J Smith
Note that IVs only affect block cipher modes other than ECB mode. ECB mode ignores IVs completely. J Titu Kim wrote: Hi, I am using libmcrypt-2.5.3 to do encryption in php. I use exactly the steps provided in mcrypt_module_open available on php website

[PHP] Re: Encrypt and decrypt cookie

2002-12-16 Thread phplist
I am not a specialist, but I discovered the parameter iv and the related function create_iv. Most likely you must provide an created iv before encryption, store the cypher and the iv together in the cookie and at retreaval, use both in decrypt. So in between: /* Terminate encryption handler */