fnv1 and fnv1a hash functions in java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src readme Jul 17, 2011
.gitignore initial commit Jul 17, 2011
LICENSE license Jul 17, 2011
README.md note about getting it Jul 17, 2011
pom.xml 1.0.0 Jul 17, 2011


Fowler-Noll-Vo hash

You can get a prebuilt JAR from the downloads section, or easily build it yourself with Maven.

import com.bitlove.fnv.FNV;

(new FNV).fnv1a_64("blah".getBytes()) => java.math.BigInteger = 14233852691173593346

Supported hashes are fnv1_32, fnv1_64, fnv1a_32, and fnv1a_64.

Test cases were taken from here.

There is also a Ruby version.