PHPackages                             indigophp/hash-compat - 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. indigophp/hash-compat

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

indigophp/hash-compat
=====================

Backports hash\_\* functionality to older PHP versions

v1.1.0(10y ago)23996.4k↓10.6%2[2 issues](https://github.com/indigophp/hash-compat/issues)8MITPHPPHP &gt;=5.3

Since Jan 9Pushed 9y ago4 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (4)Used By (8)

hash\_\*() compat
=================

[](#hash_-compat)

[![Latest Version](https://camo.githubusercontent.com/8180d7e8c73c6bbfe9e7eb42330524247f33be3028b2704e9d6b9336ed37f456/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f696e6469676f7068702f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://github.com/indigophp/hash-compat/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Build Status](https://camo.githubusercontent.com/8346832d81f35288c739a62bbed40ec3472bf68e8270ceab57b197c86d94852d/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f696e6469676f7068702f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/indigophp/hash-compat)[![Code Coverage](https://camo.githubusercontent.com/b02ecb9965df5163b7e8bfa0327bfa4b0b7cb3cb563a46ea237822be9964870c/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f696e6469676f7068702f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/indigophp/hash-compat)[![Total Downloads](https://camo.githubusercontent.com/ee4557e14f6454dc5093de8172837d6d80c7991aa6363d879967e8231f197603/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f696e6469676f7068702f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/indigophp/hash-compat)

**Backports hash\_* functionality to older PHP versions.*\*

Install
-------

[](#install)

Via Composer

```
$ composer require indigophp/hash-compat
```

You can safely install this package on systems, where these functions already exist, there won't be any conflict.

Since these functions have no dependencies, you can also include `src/{FUNCTION_NAME}.php` in your project.

Usage
-----

[](#usage)

The backported functions provide the same functionality as the built-in in every way.

Currently supported functions:

- [hash\_equals](http://php.net/manual/en/function.hash-equals.php)
- [hash\_pbkdf2](http://php.net/manual/en/function.hash-pbkdf2.php)

Testing
-------

[](#testing)

```
$ composer test
```

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please contact us at .

Credits
-------

[](#credits)

- [Márk Sági-Kazár](https://github.com/sagikazarmark)
- [All Contributors](https://github.com/indigophp/hash-compat/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community22

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 97.4% 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

Every ~112 days

Total

3

Last Release

3923d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.0.1PHP &gt;=5.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e4e105cea62b616d4cb376b08a849b6a428f646998537de150d16a8eb537b90?d=identicon)[mark.sagikazar](/maintainers/mark.sagikazar)

![](https://www.gravatar.com/avatar/1585b5a08e138e348f5b646231d0f16cb2eae06501fb9462bbc97a794d4de84a?d=identicon)[TamasBarta](/maintainers/TamasBarta)

---

Top Contributors

[![sagikazarmark](https://avatars.githubusercontent.com/u/1226384?v=4)](https://github.com/sagikazarmark "sagikazarmark (37 commits)")[![paragonie-scott](https://avatars.githubusercontent.com/u/11591518?v=4)](https://github.com/paragonie-scott "paragonie-scott (1 commits)")

---

Tags

hashhash\_pbkdf2hash\_equals

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[hashids/hashids

Generate short, unique, non-sequential ids (like YouTube and Bitly) from numbers

5.4k48.6M278](/packages/hashids-hashids)[torann/hashids

Laravel package for Hashids

54335.1k](/packages/torann-hashids)[delight-im/ids

Short, obfuscated and efficient IDs for PHP

289.5k1](/packages/delight-im-ids)[light/hashids

Hashids for Yii2

1120.2k](/packages/light-hashids)[bvdputte/kirby-fingerprint

Cache-busting utility to fingerprint assets (JS/CSS) in Kirby 3

1610.0k](/packages/bvdputte-kirby-fingerprint)[paragonie/blakechain

Hash chain using BLAKE2b

242.9k3](/packages/paragonie-blakechain)

PHPackages © 2026

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