PBKDF2 implementation in C# with Rfc2898DeriveBytes

前端 未结 4 1590
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 05:00

Guys, I\'m trying to implement a PBKDF2 function in C# that creates a WPA Shared key. I\'ve found some here: http://msdn.microsoft.com/en-us/magazine/cc163913.aspx that see

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-13 05:44

    Looking at the Microsoft link, I made some changes in order to make the PMK the same as those discovered in the links you put forward.

    Change the SHA algorithm from SHA256Managed to SHA1Managed for the inner and outer hash.

    Change HASH_SIZE_IN_BYTES to equal 20 rather than 34.

    This produces the correct WPA key.

    I know it's a bit late coming, but I've only just started looking for this sort of informatin and thought I could help others out. If anyone does read this post, any ideas on the PRF function and how to do it within C#?

提交回复
热议问题