开发者

Handling authentication for a web app

开发者 https://www.devze.com 2022-12-22 07:12 出处:网络
Sending username and password as plaintext, but trough HTTPS; then on server hash(salt+password) and compare that with the hash in the DB. (salt is per-user)

Sending username and password as plaintext, but trough HTTPS; then on server hash(salt+password) and compare that with the hash in the DB. (salt is per-user)

Doin' it right? :)

Cheers

PS: I'm using Ruby/Sinatra, gonna se开发者_StackOverflow社区rve via lighttpd, I think.


It really depends on your threat modeling. HTTPS is prone to man-in-the-middle attacks, so if Phishing is expected to be a threat - you better improve your authentication protocol.

0

精彩评论

暂无评论...
验证码 换一张
取 消