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:

  1. generate key.
  2. password_hashed = sha1(key + sha1(password))
  3. submit 3 value: username, key, password_hashed

in server side:

  1. check if key stored in database, if yes, make login invalid else save key database.
  2. 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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -