简体   繁体   中英

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 serve 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM