1

I have an ASP.NET membership database and I need to decrypt the encrypted passwords. I would like to do this via PowerShell or C#. I have the salt, machine key, and the encrypted password string. This is an example of what I have so far but I don't know where the Salt and Machine Key should come into play.

try
{
    byte[] data = Encoding.UTF8.GetBytes(pwd);
    data = this.DecryptPassword(data);
    return Encoding.UTF8.GetString(data);
}
catch (Exception ex)
{
   return ex.Message;
   // No machine key?
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Fubak
  • 107
  • 1
  • 11
  • 5
    Are the passwords encrypted or hashed? Hashing is "non-reversible," unless you use black hat methods like rainbow tables, dictionary attacks, or brute force. – lucrativelucas Oct 08 '15 at 14:23

1 Answers1

1

I think this has already been answered here :

Decrypting an 'Encrypted' password from ASP.NET 2.0 Membership

Thanks,

Phill

Community
  • 1
  • 1
Phillip Morton
  • 244
  • 2
  • 13