Browse Source

Merge pull request #243 from lemoer/pr_lua_hash_license

lua-hash: add license
pull/188/merge
Martin Weinelt 6 months ago
committed by GitHub
parent
commit
0229863094
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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