views:

34

answers:

1

Hello,

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.

A: 

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.

M.A. Hanin