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.
精彩评论