PHPackages                             angrybytes/hash - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. angrybytes/hash

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

angrybytes/hash
===============

Object Oriented hash interface

6.0.1(5mo ago)445.0k↓13.9%3[1 issues](https://github.com/AngryBytes/hash/issues)MITPHPPHP 8.2 - 8.5CI passing

Since Jan 8Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/AngryBytes/hash)[ Packagist](https://packagist.org/packages/angrybytes/hash)[ RSS](/packages/angrybytes-hash/feed)WikiDiscussions 6.0 Synced 1mo ago

READMEChangelog (9)Dependencies (4)Versions (15)Used By (0)

AngryBytes Hash
===============

[](#angrybytes-hash)

[![Author](https://camo.githubusercontent.com/2c3a5ed7068e9d6170fac35f3dc5c326cfa6678b6f90bfd27e7cb86a5428b515/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d40616e67727962797465732d626c75652e7376673f7374796c653d666c61742d737175617265)](https://twitter.com/angrybytes)[![Software License](https://camo.githubusercontent.com/0505b2ea836e8b135e09a3a99661edfb6675ffd43af8ac78551a7fdea35c8c5e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d70726f70726965746172792d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)\[[![Build Status](https://github.com/AngryBytes/hash/actions/workflows/php-checks.yml/badge.svg?event=push)](https://github.com/AngryBytes/hash/actions/workflows/php-checks.yml/badge.svg?event=push)

A simple PHP library that simplifies cryptographical hashing. It provides an object-oriented interface to a variety of hashing methods.

Requirements
------------

[](#requirements)

- PHP `8.2`, `8.3` or PHP `8.4` (recommended)

Installation
------------

[](#installation)

Installation is done via Composer: `composer require angrybytes/hash`.

Components
----------

[](#components)

### Hash

[](#hash)

`AngryBytes\Hash\Hash` is the main hasher class and acts as a helper wrapper around hashers (i.e. `AngryBytes\Hash\HasherInterface` implementations).

Some of the main features of this component:

- Hash strings and/or passwords.
- Create short hashes (e.g. used for identification).
- Compare strings/hashes using a time-safe method.
- Verify a string against a hash using the configured hasher.

### Hashers

[](#hashers)

This library comes with a set of hashers to be utilized by this hash component (or to be used on their own):

- `AngryBytes\Hash\Hasher\BlowFish`
- `AngryBytes\Hash\Hasher\MD5`
- `AngryBytes\Hash\Hasher\Password`

### HMAC

[](#hmac)

`AngryBytes\Hash\HMAC` can be used to generate [HMAC's](http://en.wikipedia.org/wiki/Hash-based_message_authentication_code)for string messages.

Contributing
------------

[](#contributing)

Before contributing to this project, please read the [contributing notes](CONTRIBUTING.md).

License
-------

[](#license)

Please refer to the [license file](LICENSE.md).

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance75

Regular maintenance activity

Popularity34

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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

Every ~342 days

Recently: every ~209 days

Total

14

Last Release

64d ago

Major Versions

1.0.2 → 2.0.02016-10-06

2.0.0 → 3.0.02021-05-07

3.0.x-dev → 4.0.02021-12-21

4.0.x-dev → 5.0.02023-12-01

5.0.x-dev → 6.0.02024-12-13

PHP version history (7 changes)2.0.0PHP ~5.6 || ~7.0

3.0.0PHP 7.3.\* || 7.4.\* || 8.0.\*

4.0.0PHP 7.4.\* || 8.0.\* || 8.1.\*

4.0.1PHP 7.4.\* || 8.0.\* || 8.1.\* || 8.2.\*

5.0.0PHP 8.1.\* || 8.2.\* || 8.3.\*

6.0.0PHP 8.2 - 8.4

6.0.1PHP 8.2 - 8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2d7c104d03e59c7603a91d0292e83e62454647795ffd925d11001fc6edc37c6?d=identicon)[angrybytes](/maintainers/angrybytes)

---

Top Contributors

[![t0mmie](https://avatars.githubusercontent.com/u/953495?v=4)](https://github.com/t0mmie "t0mmie (34 commits)")[![naneau](https://avatars.githubusercontent.com/u/89551?v=4)](https://github.com/naneau "naneau (27 commits)")[![stephank](https://avatars.githubusercontent.com/u/89950?v=4)](https://github.com/stephank "stephank (14 commits)")[![rinus](https://avatars.githubusercontent.com/u/409489?v=4)](https://github.com/rinus "rinus (11 commits)")[![ivarb](https://avatars.githubusercontent.com/u/849042?v=4)](https://github.com/ivarb "ivarb (3 commits)")[![stephan281094](https://avatars.githubusercontent.com/u/4006802?v=4)](https://github.com/stephan281094 "stephan281094 (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/angrybytes-hash/health.svg)

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

###  Alternatives

[lupecode/php-trader-interface

An interface to the PHP Trader extension.

371.8k](/packages/lupecode-php-trader-interface)

PHPackages © 2026

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