4 ms·
It's perfectly possible to use md5 to hash a password in Javascript before transmitting it by HTTP. There isn't a huge security benefit to doing so, however.
by estel 14y ago
It's perfectly possible to use md5 to hash a password in Javascript before transmitting it by HTTP. There isn't a huge security benefit to doing so, however.
- omra 14y agoOnly doing that won't help. You might as well be transmitting the password, since someone can just copy the hash and then it would be equivalent to having the password. (Also known as a Pass the Hash attack, http://en.wikipedia.org/wiki/Pass_the_hash http://en.wikipedia.org/wiki/Pass_the_hash).
- wisty 14y agoEach website could have a salt. The issue is, if it's not a secure connection, it's vulnerable to hijacks.
- Tloewald 14y agoYou can send a salted md5 password, which is how I implemented it years ago. The salt is supplied by the server and attached to the session.