PHPackages                             duzun/siphash - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. duzun/siphash

ActiveLibrary

duzun/siphash
=============

SipHash PHP implementation (-2-4 so far)

0.0.1(8y ago)110.9k1MITPHPPHP &gt;=5.3.0

Since May 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/duzun/SipHash)[ Packagist](https://packagist.org/packages/duzun/siphash)[ Docs](https://github.com/duzun/SipHash)[ RSS](/packages/duzun-siphash/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

SipHash [![Build Status](https://camo.githubusercontent.com/5f0a98315de2279fb17c7162adb9ec074969a6e285a4db3d6bd6c728ed1bf909/68747470733a2f2f7472617669732d63692e6f72672f64757a756e2f536970486173682e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/duzun/SipHash)
==============================================================================================================================================================================================================================================================================

[](#siphash--)

[SipHash-2-4](https://131002.net/siphash/) implementation written in PHP

Install
=======

[](#install)

### With [composer](https://getcomposer.org/)

[](#with-composer)

```
composer require duzun/siphash
```

### Vanilla PHP (no composer)

[](#vanilla-php-no-composer)

Copy `src/siphash.php` to your project, then

```
require_once 'src/siphash.php';
```

Usage
=====

[](#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"
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3283d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5300c81d91f72d21119a70370ddf7810d64c38c81b677390eb2d63afe90e255d?d=identicon)[duzun](/maintainers/duzun)

---

Top Contributors

[![duzun](https://avatars.githubusercontent.com/u/321424?v=4)](https://github.com/duzun "duzun (9 commits)")

---

Tags

phphashSipHash

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/duzun-siphash/health.svg)

```
[![Health](https://phpackages.com/badges/duzun-siphash/health.svg)](https://phpackages.com/packages/duzun-siphash)
```

###  Alternatives

[poly-crypto/poly-crypto

High-level cryptographic functions that are interoperable between NodeJS and PHP 7.1+

127.8k1](/packages/poly-crypto-poly-crypto)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
