[PHP] two way encryption

2002-07-14 Thread Justin French
Hi all, I'm looking at a way of encrypting AND decrypting a string (cc#) with a key. I plan to store the key in a file outside the docroot, and have asked the ISP for as much advice as possible to protect the key file. Anyway, since it needs to be encrypted and decrypted with a key, I obviously

Re: [PHP] two way encryption

2002-07-14 Thread Joe Conway
Justin French wrote: I'm getting the following error using 4.1.1: Fatal error: Call to undefined function: mcrypt_create_iv() in /usr/local/apache/htdocs/tests/enc.php on line 3 Which is confusing, given that the manual says mcrypt_create_iv() is available in PHP 4. Looks like your ISP

Re: [PHP] two way encryption

2002-07-14 Thread Justin French
on 15/07/02 12:41 PM, Joe Conway ([EMAIL PROTECTED]) wrote: Looks like your ISP doesn't have mcrypt support. What does phpinfo() show? Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so

Re: [PHP] two way encryption

2002-07-14 Thread Joe Conway
Justin French wrote: Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so there's very little point in getting my local server working with it. What alternatives do I have? I don't

RE: [PHP] two way encryption

2002-07-14 Thread James Cox
sorry to step in, but did you consider base64_[encode|decode] ? -- james Justin French wrote: Well, that was on my local test server, which I didn't compile with mcrypt... so that solves that, but it appears my ISP didn't compile with it either... so there's very little point in

Re: [PHP] two way encryption

2002-07-14 Thread Justin French
base64 doesn't have a key, so anyone could decode the string, which is obviously not desirable :) thanks anyway Justin on 15/07/02 2:00 PM, James Cox ([EMAIL PROTECTED]) wrote: sorry to step in, but did you consider base64_[encode|decode] ? -- james Justin French wrote: Well, that

Re: [PHP] two way encryption

2002-07-14 Thread Jason Wong
On Monday 15 July 2002 10:27, Justin French wrote: I'm getting the following error using 4.1.1: Fatal error: Call to undefined function: mcrypt_create_iv() in /usr/local/apache/htdocs/tests/enc.php on line 3 Did you actually install the mcrypt libs? Which is confusing, given that the

[PHP] Two Way Encryption

2001-03-13 Thread Joe Njeru
Hi All, I'm looking for a two way encryption function that I can use to encrypt a cookie value. I have had experience with MD5 but its one way. Is there one I can use with a key in php? Thanks in advance, Joe Njeru, Nairobi Kenya. "Where the women are beautiful" -- PHP General Mailing List

Re: [PHP] Two Way Encryption

2001-03-13 Thread Mukul Sabharwal
Hey, http://www.devhome.net/php/tutorials/230101.html that's RC4 implementation in PHP. you don't need mcrypt. --- Joe Njeru [EMAIL PROTECTED] wrote: Hi All, I'm looking for a two way encryption function that I can use to encrypt a cookie value. I have had experience with MD5 but its

Re: [PHP] Two Way Encryption

2001-03-13 Thread Chris Adams
On 13 Mar 2001 03:40:30 -0800, Joe Njeru [EMAIL PROTECTED] wrote: I'm looking for a two way encryption function that I can use to encrypt a cookie value. I have had experience with MD5 but its one way. Is there one I can use with a key in php? Check out the mcrypt extension for conventional