security - Does my web login system work? -
i'm building web login system website without ssl, here implement:
have table in server has 2 fields, raw username , pass_hashed (hased sha1(password)). when ever user login system, do:
- generate key.
- password_hashed = sha1(key + sha1(password))
- submit 3 value: username, key, password_hashed
in server side:
- check if key stored in database, if yes, make login invalid else save key database.
- query user info base on username, , compare sha1(key + pass_hased) , password_hashed.
my question method ok? if yes, can use key timestamp?
although solution better nothing flawed. because @ point during user's registration process need send portion of information. if information captured on wire @ point login can repeated later.
you need ssl.
Comments
Post a Comment