Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Visual Studio doen';t显示Rfc2898DeriveBytes的所有构造函数_C#_.net_Visual Studio_Cryptoapi - Fatal编程技术网

C# Visual Studio doen';t显示Rfc2898DeriveBytes的所有构造函数

C# Visual Studio doen';t显示Rfc2898DeriveBytes的所有构造函数,c#,.net,visual-studio,cryptoapi,C#,.net,Visual Studio,Cryptoapi,我使用Rfc2898DeriveBytes类对密码进行哈希运算。我想使用改变散列函数()的构造函数,但VisualStudio说构造函数不存在,只显示带有三个参数的构造函数 之前,我使用的是带有三个参数的版本 new Rfc2898DeriveBytes(pass, salt, m_iterations); 这个很好用 new Rfc2898DeriveBytes(pass, salt, m_iterations, HashAlgorithmName.SHA256); 这些重载是在.NET

我使用Rfc2898DeriveBytes类对密码进行哈希运算。我想使用改变散列函数()的构造函数,但VisualStudio说构造函数不存在,只显示带有三个参数的构造函数

之前,我使用的是带有三个参数的版本

new Rfc2898DeriveBytes(pass, salt, m_iterations);
这个很好用

new Rfc2898DeriveBytes(pass, salt, m_iterations, HashAlgorithmName.SHA256);

这些重载是在.NET 4.7.2、.NET Core 2.0和.NET Standard 2.1(预览版)中添加的-您可以使用左上角的.NET版本选择器来检查这一点


确保您的项目针对的是这些版本中的一个或更高版本。

是否设置为使用4.7.2