ASP.NET Membership - Retrieve Password and PasswordSalt from Membership Table - Hash UserID

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2010-04-30T02:14:27Z Indexed on 2010/04/30 2:27 UTC
Read the original article Hit count: 973

Hello,

I am so close to get this project done. I need to retrieve the password and passwordSalt from my Membership table to compare it to my 'OldPasswords' table.

The problem is the Membership provider does not let me use the GetPassword method because the password is hashed.

And I can not retrieve it in a normal sqlConnection because the UserID is hashed also.

Does anyone know how to hash the UserID so I can put it in my where clause?

Or maybe there is a different way to get to that data?

Any help is appreciated.

Thank you,

Steve

© Stack Overflow or respective owner

Related posts about asp.net-membership

Related posts about membership-provider