Re: [PHP] Upgrading from libmcrypt 2.2.x to 2.4.x

2002-05-03 Thread Tom Rogers
Hi Thanks for that info, was just what I needed :) You can also create $iv with this: $iv = pack(a.mcrypt_enc_get_iv_size($td),$iv); I use base64_encode() and base64_decode() to store the result and send via the web. Tom At 01:02 PM 3/05/2002, Cédric Veilleux wrote: Hi, I had an

Re: [PHP] Upgrading from libmcrypt 2.2.x to 2.4.x

2002-05-03 Thread Cédric Veilleux
Hi, Thanks for the hint. Just a small note to let you know that my code to decrypt a string will return a string with filled with null characters at the end. You should trim() it. Also, anybody knows how to detect if the PHP build is linked with 2.2 or 2.4? I would

[PHP] Upgrading from libmcrypt 2.2.x to 2.4.x

2002-05-02 Thread Cédric Veilleux
Hi, I had an hard time converting my code from mcrypt 2.2.x to 2.4.x. There is a big lack of info about the difference between the two and I could not find anything to help me make the move. My problem was not getting things to work with either version of mcrypt, there are