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

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

assertchris/hash-compat
=======================

Provides forward compatibility with the hash\_\* functions that ship with PHP 5.5

1.0.1(11y ago)0143.0k—3.4%1MITPHPCI failing

Since May 5Pushed 6y agoCompare

[ Source](https://github.com/assertchris/hash-compat)[ Packagist](https://packagist.org/packages/assertchris/hash-compat)[ RSS](/packages/assertchris-hash-compat/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

hash-compat
===========

[](#hash-compat)

[![Build Status](https://camo.githubusercontent.com/971e877a455ef240f1b20ac2502a865d50ba761eaf6905c90f7b2acff0793467/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f61737365727463687269732f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/assertchris/hash-compat)[![Code Quality](https://camo.githubusercontent.com/63581e73d030eeaeabae49484d2eff3f60280865d3e7547c357bcc44cdc99300/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f61737365727463687269732f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/assertchris/hash-compat)[![Code Coverage](https://camo.githubusercontent.com/1401b9b2a0ab7c604f2f441af4b360a4698b03b3b80f42c0d071005ae2255ce5/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f61737365727463687269732f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/1401b9b2a0ab7c604f2f441af4b360a4698b03b3b80f42c0d071005ae2255ce5/687474703a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f61737365727463687269732f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)[![Version](https://camo.githubusercontent.com/5940aae7c900b70c88f8b83cbec4b5ff9ee19d0a0e405353ca6eec90d03a8157/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61737365727463687269732f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/assertchris/hash-compat)[![License](https://camo.githubusercontent.com/8e62e88c96634dc54fa84b3bf1663c467cfeee5f0a93a62f2a716e117a57c224/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f61737365727463687269732f686173682d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](licence.md)

Provides forward compatibility with the `hash_*` functions that ship with PHP 5.5.

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

[](#installation)

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

Usage
-----

[](#usage)

```
$salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);

$pbkdf2 = hash_pbkdf2("sha256", "password", $salt, 1000, 20);

```

Caution
-------

[](#caution)

The PBKDF2 method should not be used for hashing passwords for storage. `password_hash()` or `crypt()` with `CRYPT_BLOWFISH` are better suited for password storage.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you have found a security issue, please contact the author directly at .

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~0 days

Total

2

Last Release

4077d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/00089084814b5b79cd35b9f501bcc48d74c5afb2cb4703562a82e081f31c843c?d=identicon)[assertchris](/maintainers/assertchris)

---

Top Contributors

[![assertchris](https://avatars.githubusercontent.com/u/200609?v=4)](https://github.com/assertchris "assertchris (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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