我通过 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);