You are here: Re: How to insert a value by encrypting and should be able to get this by decrypting « PHP Programming Language « IT news, forums, messages
Re: How to insert a value by encrypting and should be able to get this by decrypting

Posted by Michael Fesser on 02/12/07 17:23

..oO(Amar)

>I want to insert my password into the mysql database by encrypting it
>so that I can also retrieve the password. Before I was using sha1()
>for encrypting password,but it is an one way method.

That's how it's supposed to be. Passwords should never be stored in a
decryptable way. If a script can decrypt them, an attacker can do that
as well.

Storing just a (salted) password hash is fine. If a user forgets his
password then he should get a new one.

Micha

 

Navigation:

[Reply to this 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

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