Page 1 of 1

Simple encryption mechanism?

Posted: Mon Jul 19, 2004 2:08 pm
by mjseaden
Dear All,

I would like to use a simple encryption mechanism to encrypt customer's personal details stored on my site.

I can't use crypt() as it's a one-way function - can anyone recommend a good, free, but robust encryption algorithm I could use to encrypt and decrypt the data?

Many thanks,

Mark

Posted: Mon Jul 19, 2004 2:15 pm
by feyd
look into [php_man]mcrypt[/php_man]

Posted: Mon Jul 19, 2004 2:25 pm
by mjseaden
Hi feyd,

Thanks for the advice, but I'm afraid I'm unable to use an external library as I am using a shared host and can't compile into the box.

If there's any good encryption code available in 'list' form I would be most grateful.

Mark

Posted: Mon Jul 19, 2004 5:10 pm
by Weirdan
you can take a look at first user comment at [php_man]md5[/php_man] page as well