title: ASP.NET Membership - Retrieve Password and PasswordSalt from Membership Table - Hash UserID
body: <p>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.</p>
  
  <p>The problem is the Membership provider does not let me use the GetPassword method because the password is hashed.</p>
  
  <p>And I can not retrieve it in a normal sqlConnection because the UserID is hashed also.</p>
  
  <p>Does anyone know how to hash the UserID so I can put it in my where clause?</p>
  
  <p>Or maybe there is a different way to get to that data?</p>
  
  <p>Any help is appreciated.</p>
  
  <p>Thank you,</p>
  
  <p>Steve</p>