Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

libhash

Build Status

Example

  • Murmur3 algorithm
<?php
echo \LibHash\Murmur3::to32("foo");
$v = \LibHash\Murmur3::to64("foo");

echo "\r\n";
echo $v[0];
echo "\r\n";
echo $v[1];
echo "\r\n";
?>
  • Cityhash algorithm
<?php
echo \LibHash\City::to32("abc");
echo "\r\n";

echo \LibHash\City::to64("abc");

$v = \LibHash\City::to128("abc");

echo "\r\n";
echo $v[0];
echo "\r\n";
echo $v[1];
echo "\r\n";
?>

About

PHP extension, new hash algorithm library

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages