Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

fnv1 and fnv1a hash functions in ruby

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

Fowler-Noll-Vo hash

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.

Something went wrong with that request. Please try again.