No description
Find a file
2024-07-25 14:09:05 -04:00
src added tests and updated readme 2024-07-25 13:49:40 -04:00
tests added tests and updated readme 2024-07-25 13:49:40 -04:00
.gitignore first commit 2024-07-17 17:27:44 -04:00
.gitmodules first commit 2024-07-17 17:27:44 -04:00
hannah.nimble first commit 2024-07-17 17:27:44 -04:00
LICENSE first commit 2024-07-17 17:27:44 -04:00
README.md Update README.md 2024-07-25 14:09:05 -04:00

hannahhannah-logo

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()