Browse Source

lua-hash: add license

pull/243/head
lemoer 6 months ago
parent
commit
f3b0c5ac20
  1. 2
      libs/lua-hash/src/hash.c
  2. 4
      libs/lua-hash/src/test.lua

2
libs/lua-hash/src/hash.c

@ -1,3 +1,5 @@
// SPDX-FileCopyrightText: 2016-2021 Leonardo Mörlein <git@irrelefant.net>
// SPDX-License-Identifier: MIT License
#include <libubox/md5.h>
#include <lua.h>

4
libs/lua-hash/src/test.lua

@ -1,3 +1,7 @@
#!/usr/bin/lua
-- SPDX-FileCopyrightText: 2016-2021 Leonardo Mörlein <git@irrelefant.net>
-- SPDX-License-Identifier: MIT License
hash = require "hash"
assert(hash.md5('testing') == 'ae2b1fca515949e5d54fb22b8ed95575')
Loading…
Cancel
Save