[Tutorial] Hashing passwords with MySQL
#9

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
But there is a difference between intercepting the query
Код:
SELECT * FROM `users` WHERE `pass` = sha1('fuckme123')
and
Код:
SELECT * FROM `users` WHERE `pass` = '0FDF715A80C43F6603E8B8EC9676A45AD18AD8773BDE840F04D65A10157547EA05A67C0BE2F5990151EE9B7D7901C1523375CEE43E51EB7A48F25C712A05240C'
Personally, I'd rather have a hacker get a hold of the second one.
How the hell would a hacker get to see your queries?

To encrypt a password using anything, you first have to get the playn text password and then encrypt it.
With WP is:
WP_Hash(escapedPassword, sizeof(escapedPassword), plaint_text_password);

If someone gets access to your server and is able to view the queries, he will also be able to save the passwords before them being encrypted with WP.
Reply


Messages In This Thread
Hashing passwords with MySQL - by FireCat - 05.08.2012, 12:20
Re: Hashing passwords with MySQL - by ReneG - 05.08.2012, 12:42
Re: Hashing passwords with MySQL - by FireCat - 05.08.2012, 12:44
Re: Hashing passwords with MySQL - by ReneG - 05.08.2012, 12:49
Re: Hashing passwords with MySQL - by FireCat - 05.08.2012, 12:50
Re: Hashing passwords with MySQL - by Vince - 05.08.2012, 13:31
Re: Hashing passwords with MySQL - by FireCat - 05.08.2012, 13:48
Re: Hashing passwords with MySQL - by ReneG - 06.08.2012, 00:33
Re: Hashing passwords with MySQL - by im - 06.08.2012, 08:13
Re: Hashing passwords with MySQL - by FireCat - 06.08.2012, 09:24

Forum Jump:


Users browsing this thread: 1 Guest(s)