sql server - How to store passwords in database securely? -
i have read 1 way store passowrds in database following way. have database table columns username, hash , salt. salt never shown.
i generate hash password + salt. password send user , not stored in database. if generated hash same stored in database, password correct.
but have doubts. if send password, sniffed while transmitted wire, think neccesary encrypt communication too. using hash , salt protect data administrator? mean if store password in database, administrator access information. if store hash, administrators can't access information of users becasue administrator don't have half of information, salt , not password. however, while user need send password, sniff someone, password exposed.
how best way protect information of user?
thanks.
hashed passwords protect data outsiders. imagine, if accessed data using sql injection hash & not pass. can use https secure communication on network & use existing table of hashed passwords security model. secure salted password hashing
Comments
Post a Comment