I can't find a way of specifying the hashing algorithm used by the PBKDF2 (the Rfc2898DeriveBytes class) implementation in C# System.Security.Cryptography.
It seems to be just SHA1. Am I missing something? I was hoping to use PBKDF2-SHA256.
|
I can't find a way of specifying the hashing algorithm used by the PBKDF2 (the Rfc2898DeriveBytes class) implementation in C# It seems to be just SHA1. Am I missing something? I was hoping to use PBKDF2-SHA256. |
|||||||||||||||||||||
|
|
Have a look at this blog post: the author has apparently observed the same lack of SHA-256 support in the Otherwise, it would not be too hard to reimplement PBKDF2 with HMAC/SHA-256, following the description of RFC 2898, section 5.2. .NET includes an implementation of HMAC/SHA-256. |
|||||||
|