我通过NuGet安装了Libsodium-net并能够在我的类中包含Sodium,但是当我尝试运行它时,出现了“System.DllNotFoundException”类型的异常,但未在用户代码中处理。
附加信息:无法加载DLL“libsodium.dll”:找不到指定的模块。(来自HRESULT的异常:0x8007007E)
我只是想运行gitbooks文档中的示例代码。 https://bitbeans.gitbooks.io/libsodium-net/content/password_hashing/index.html
附加信息:无法加载DLL“libsodium.dll”:找不到指定的模块。(来自HRESULT的异常:0x8007007E)
我只是想运行gitbooks文档中的示例代码。 https://bitbeans.gitbooks.io/libsodium-net/content/password_hashing/index.html
const string PASSWORD = "Correct Horse Battery Staple";
const string SALT = "qa~t](84z<1t<1oz:ik.@IRNyhG=8q(o";
const long OUTPUT_LENGTH = 512;
//this will produce a 512 byte hash
var hash = PasswordHash.ScryptHashBinary(PASSWORD, SALT, PasswordHash.Strength.Medium, OUTPUT_LENGTH);