0

Which Hashing Algorithm aspnet identity 2.0 uses to hash password. Is it SHA1 or SHA256 ? Is it possible to change to SHA2 if it uses SHA1 ?

Samjog
  • 31
  • 7
  • Possible duplicate of [ASP.NET Identity default Password Hasher, how does it work and is it secure?](http://stackoverflow.com/questions/20621950/asp-net-identity-default-password-hasher-how-does-it-work-and-is-it-secure) – trailmax Jan 20 '17 at 22:51
  • And http://stackoverflow.com/questions/19957176/asp-net-identity-password-hashing – trailmax Jan 20 '17 at 22:52

2 Answers2

1

Microsoft is using PBKDF2 as their hashing algorithm in Identity 2.0.

Svekke
  • 1,470
  • 1
  • 12
  • 20
0

Asp.net Identity 2.0 uses SHA1. It relies on Rfc2898DeriveBytes and does not have any SHA256 option--you'd have to write your own implementation.

Asp.net Identity 3.0 does have an SHA256 option though.

Matthew
  • 4,149
  • 2
  • 26
  • 53