Digest::SpookyHash - SpookyHash implementation for Perl
use strict; use warnings; use Digest::SpookyHash qw(spooky32 spooky64 spooky128); my $key = 'spooky'; my $hash32 = spooky32($key, 0); my $hash64 = spooky64($key, 0); my ($hash64_1, $hash64_2) = spooky128($key, 0);
This module provides an interface to SpookyHash(SpookyHash V2) functions.
This module works only in the environment which supported a 64-bit integer.
This module works only in little endian machine.
Calculates a 32 bit hash.
Calculates a 64 bit hash.
Calculates a 128 bit hash. The result is returned as a two element list of 64 bit integers.
http://burtleburtle.net/bob/hash/spooky.html
Hideaki Ohno <hide.o.j55 {at} gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Digest::SpookyHash, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Digest::SpookyHash
CPAN shell
perl -MCPAN -e shell install Digest::SpookyHash
For more information on module installation, please visit the detailed CPAN module installation guide.