Skip to content

a WebAssembly implementation for the FNV-0/FNV-1/FNV-1A 512 bits hashing algorithms

License

Notifications You must be signed in to change notification settings

crashdemons/fnv512-wasm

 
 

Repository files navigation

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.

About

a WebAssembly implementation for the FNV-0/FNV-1/FNV-1A 512 bits hashing algorithms

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 52.7%
  • JavaScript 28.6%
  • HTML 14.6%
  • Shell 2.1%
  • Makefile 2.0%