Skip to content

CakeDC/SipHash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SipHash Build Status

SipHash-2-4 implementation written in PHP

Install

composer require duzun/siphash

Vanilla PHP (no composer)

Copy src/SipHash.php to your project, then

require_once 'src/SipHash.php';

Usage

use duzun\SipHash; // PHP >= 5.3.0

// 128-bit $key is a string of max 16 chars
// $message is any string you want to hash
$hash = SipHash::hash_2_4($key, $message); // eg. "6dd48df68066d1bd"

About

SipHash-2-4 implementation in PHP

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • PHP 83.4%
  • JavaScript 16.6%