Rfc2898 / PBKDF2 with SHA256 as digest in c#

前端 未结 8 2328
伪装坚强ぢ
伪装坚强ぢ 2020-12-13 10:01

I want to use Rfc2898 in c# to derive a key. I also need to use SHA256 as Digest for Rfc2898. I found the class Rfc2898DeriveBytes, but it uses SHA-1 and I don\

8条回答
  •  心在旅途
    2020-12-13 10:53

    .NET Core has a new implementation of Rfc2898DeriveBytes.

    The CoreFX version no longer has the the hashing algorithm hard-coded

    The code is available on Github. It was merged to master on March 2017 and has been shipped with .NET Core 2.0.

提交回复
热议问题