https://github.com/synodriver/lua-wyhash
lua binding for wyhash
https://github.com/synodriver/lua-wyhash
Last synced: about 1 year ago
JSON representation
lua binding for wyhash
- Host: GitHub
- URL: https://github.com/synodriver/lua-wyhash
- Owner: synodriver
- Created: 2022-07-27T17:37:18.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-27T17:38:53.000Z (almost 4 years ago)
- Last Synced: 2025-02-14T00:24:03.122Z (over 1 year ago)
- Language: C
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
# lua binding for wyhash
```lua
local wyhash = require("wyhash")
local seed = 20
local sec = wyhash.make_secret(seed)
print(wyhash.hash("sasasa", seed, sec))
print(wyhash.hash("sasasa", seed, sec))
print(wyhash.hash("sasasa", seed+1, sec))
print(wyhash.hash("sasasa", seed+1, sec))
print(wyhash.hash("sasasa", seed+2, sec))
print(wyhash.hash("sasasa", seed+2, "ssssssssssssssssssssssssssssssss"))
```