开发者

Handling authentication for a web app

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜