c# 4.0 - C#: has it sense convert string to secure string? -
i use secure string have password in variable. password database, because using hashed password , need compare password given user , tha hashed password have in database.
well, retrieve password database, hashed pssword. string, if convert string secure string, how start string, unsecure, has sense convert secure string? because string exposed since database , store in string in first moment.
how correct way compare stored password in database , password given user?
i using repository work , repository executed in local computer of user, not in server.
thanks.
as wrote, not make sense convert existing password string, damage done. however, since talking hash, not password, in general fine query (please call me out if wrong).
but additionally, can ask db equality of hashes instead of querying existing hash.
have @ this question more information, accepted answer has lot of excellent links.
Comments
Post a Comment