Skip to content

fnv1 and fnv1a hash functions in java

License

Notifications You must be signed in to change notification settings

98labs/fnv-java

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

fnv1 and fnv1a hash functions in java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%