我通过NuGet安装了Libsodium-net并且能够在我的课程中包含Sodium,但是当我尝试运行它时,我得到了
Sodium.dll中出现"System.DllNotFoundException"类型的异常,但未在用户代码中处理
其他信息:无法加载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);
Run Code Online (Sandbox Code Playgroud)