i have a login page within asp.net 3.5 (c#) website, and sql server 2008 at backend, i wrote a store procedure to save password in hashed form using SHA1 algo during registration , now during login i want to compare etered passowrd with the one save in db, so i hashed the entered password by using this: String hashedPwd = FormsAuthentication.HashPasswordForStoringInConfigFile(txtboxPassword.Text,"SHA1");
HunainHafeez
9
Posting Whiz
Recommended Answers
Jump to PostI dont have code on hand to share, but the steps that I would try are as follows:
1) the user submits the username and password
2) you apply the hash to the password submitted.
vb example...
dim pwd as string = FormsAuthentication.HashPasswordForStoringInConfigFile(txtPwd.Text,"SHA1")
3) perform a sql query to retrieve the …
All 3 Replies
HunainHafeez
9
Posting Whiz
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
HunainHafeez
9
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.