Skip to content

jakedouglas/fnv-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gem install fnv

require "fnv"

FNV.new.fnv1a_64("blah") => 14233852691173593346

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

There are other implementations for ruby but they use C.

Test cases were taken from here.

There is also a Java version.

About

fnv1 and fnv1a hash functions in ruby

Resources

License

Stars

Watchers

Forks

Packages

No packages published