mirror of
https://github.com/sainttttt/hannah
synced 2026-01-02 05:54:43 +00:00
No description
| src | ||
| tests | ||
| .gitignore | ||
| .gitmodules | ||
| hannah.nimble | ||
| LICENSE | ||
| README.md | ||
hannah
Hash library for Nim, currently supports xxhash
nimble install hannah
Usage:
hash = streamingHashXxH3_64(largefilePath, seed)
echo hash
var state = newXxh32()
state.update(msg)
assert state.digest() == msgh32
assert $state == $msgh32
state.reset()
state.update("Nobody ")
state.update("inspects ")
state.update("the spammish ")
state.update("repetition")
assert state.digest() == 3794352943'u32
assert $state == $3794352943'u32
state.reset()