Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 975 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 975 Bytes

fnv512

fnv512 is an implementation for the FNV-0/FNV-1/FNV-1A 512 bits hashing algorithms which has been rebuilt for WebAssembly (WASM).

Live demo: https://crashdemons.github.io/fnv512-wasm/

All credit goes to tweqx for this library

Build Requirements

  • emcc (Emscripten) or clang++
  • updated C++11 libraries/includes

Building the project yourself

  • run make to generate the tests, or ./make-wasm.sh to generate the JS loader and WASM
  • note: fnv512-wasm.js is a barebones emscripten loader for the WASM Module. fnv512-wrapped.js automatically loads and sets up a JS Object with more useful methods to you.

Usage

coming soon

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GPLv3

uint512 stub is available separately under LGPLv3 to allow reuse as a library.