Reply to Re: [PHP] encrypt and dcrypt

Your name:

Reply:


Posted by Chris Shiflett on 12/16/05 00:21

ganu wrote:
> I want a function like md5() by which I can encrypt a code and
> again when I need from db i can dcrypt also.
>
> but in md5() this func. is not there. I can not go in reverse
> way.

If a simple PHP function could encrypt and decrypt data with no
arguments other than the string, anyone could decrypt your data. In
other words, it can't be as simple as md5().

You might find the code samples at the bottom of this page helpful:

http://phpsecurity.org/code

They primarily cover using mcrypt. There's also an article by Robert
Peake that's pretty good:

http://www.phpmag.net/itr/online_artikel/psecom,id,667,nodeid,114.html

Hope that helps.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация