【问题标题】:Lua SHA256 LibraryLua SHA256 库
【发布时间】:2019-03-30 03:17:36
【问题描述】:

我是 Lua 脚本的新手。尝试在我的 Lua 脚本中使用 SHA256 哈希机制。

Lua 5.3.5 版本是否具有 SHA256 作为内置库,如字符串、数学等。 或者我们需要使用luarocks install sha2 安装吗?

我在我的 MAC 中尝试了luarocks install sha2,但出现下面列出的错误,

sha2lib.c:133:27: error: array has incomplete element type 'struct luaL_reg'
static struct luaL_reg reg[] = {

错误:构建错误:编译对象 sha2lib.o 失败

【问题讨论】:

    标签: lua lua-table luarocks sha2


    【解决方案1】:

    Lua 没有内置的 SHA256 库。

    有关纯 Lua 解决方案,请参阅 https://github.com/Egor-Skriptunoff/pure_lua_SHA2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-17
      • 1970-01-01
      • 1970-01-01
      • 2013-10-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多