小编Que*_*ion的帖子

Libsodium-net - 无法加载DLL'libsodium.dll

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

.net c# dll libsodium asp.net-web-api2

7
推荐指数
2
解决办法
4835
查看次数

标签 统计

.net ×1

asp.net-web-api2 ×1

c# ×1

dll ×1

libsodium ×1