Simple encryption mechanism?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Simple encryption mechanism?

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

look into [php_man]mcrypt[/php_man]
mjseaden
Forum Contributor
Posts: 458
Joined: Wed Mar 17, 2004 5:49 am

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

you can take a look at first user comment at [php_man]md5[/php_man] page as well
Post Reply