Re: [PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Ray
Well now I have the Encryption problem figured out but when I try to decrypt the information, I'm getting this error: Warning: mcrypt module initialization failed in test.php on line 11 Here's Line 11: $text = mcrypt_decrypt (MCRYPT_TripleDES, $key, $lockdata, MCRPYT_MODE_ECB, $iv); again an

Re: [PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Rogers
Hi Here are a couple of functions that should help to get you started, iv is set to all 0's so it does not have to be passed around or stored in sessions. It is base64 encoded so it can be stored or passed to the browser. Function Code_id($id,$password){ $eid = 0; $td = mcrypt

[PHP] Mcrypt Function - New to it

2002-05-30 Thread Tom Ray
Hi there..some what a new programmer when it comes to all this. I'm trying to encrypt some data and then decrypt it. It doesn't have to be high bit encryption just something simple like 3DES. But I keep getting it wrong. Any help would be greatful. Here's the piece of code: $iv = mcrypt_create