/FNV1a

a tiny implementation of FNV1a

Primary LanguageJavaScript

FNV1a JS Implementation


An implementation of FNV1a following the source: http://www.isthe.com/chongo/tech/comp/fnv/index.html

How To


The function FNV1a takes two arguments

  1. str: an string to be hashed
  2. size: an string indicating size (valid inputs: '32bit', '64bit', '128bit')

TODO


  • start with basic implementation
  • make the function self-contained
  • add some tests
  • convert to an usable npm package (may be)