note 35747 deleted from function.md5 by danbrown
| From: | danbrown@php.net | Date: | Mon, 20 Jun 2011 15:21:46 +0000 |
| Subject: | note 35747 deleted from function.md5 by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180748@lists.php.net to get a copy of this message | ||
Note Submitter: mina86 at tlen dot pl
----
In respons to paj at pajhome dot org dot uk @ 21-May-2003 03:20:
In many cases, there is only hash of password saved on server, so JavaScript script must return:
md5(md5(password) + random) and server must compare it with md5(saved_md5 + random).
However, it might be less secure then sending plain password. Let say someone gaind read only access
to your database (it doesn't matter how he did it). With such access he can read each
user's reacord so he knows each user username and hash of password. With that knowledge, all he
must do to hack your site is connect to server, read the random number, calculate
md5(hash_of_password_which_he_has_stolen + random) and send it to server. Be aware of this issue
if you think your database is not secure enought.