PHPackages                             rych/hash\_pbkdf2-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. [Security](/categories/security)
4. /
5. rych/hash\_pbkdf2-compat

ActiveLibrary[Security](/categories/security)

rych/hash\_pbkdf2-compat
========================

Provides hash\_pbkdf2() to PHP versions &gt;=5.3,&lt;5.5.

v1.0.1(10y ago)878.1k↓25%38MITPHPPHP &gt;=5.3.3

Since Sep 22Pushed 10y agoCompare

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

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

PHP PBKDF2 Compatibility Functions
==================================

[](#php-pbkdf2-compatibility-functions)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5f63c2c3ff1f3f4b2963a9eb04d2047266e3eda81c2e2c94c90ef79a52676785/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f727963682f686173685f70626b6466322d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rych/hash_pbkdf2-compat)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/d18dad356a39129b885b8563918a949c9350cef08b5bd2167342506c770d0fed/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7263686f75696e6172642f686173685f70626b6466322d636f6d7061742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/rchouinard/hash_pbkdf2-compat)[![Total Downloads](https://camo.githubusercontent.com/d2fa384ddb2ba8a04ca4e5e077182c9b4192b133a15453b9f59e30a7296b30e2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f727963682f686173685f70626b6466322d636f6d7061742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/rych/hash_pbkdf2-compat)

This component provides compatibility for the [`hash_pbkdf2()`](http://php.net/manual/en/function.hash-pbkdf2.php)function on PHP versions &gt;=5.3,&lt;5.5.

Install
-------

[](#install)

Via Composer

```
$ composer require rych/hash_pbkdf2-compat
```

Usage
-----

[](#usage)

When loaded via Composer on PHP versions &lt;5.5, a global function `hash_pbkdf2()` is automatically loaded which matches the &gt;=5.5 built-in function as closely as possible. On PHP versions &gt;=5.5, the shim function is available as `\Rych\hash_pbkdf2()`.

If not using Composer, make sure to include `src/hash_pbkdf2-compat.php` in order to load the function.

See the PHP documentation for [`hash_pbkdf2()`](http://php.net/manual/en/function.hash-pbkdf2.php) for information.

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [Ryan Chouinard](https://github.com/rchouinard/)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

36

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity34

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.7% 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 ~791 days

Total

2

Last Release

3820d ago

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

v1.0.1PHP &gt;=5.3.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/24d87a789856eb84954abbb4d08a0c4fc3ac5a09030dea9c6a5e50510e591278?d=identicon)[rchouinard](/maintainers/rchouinard)

---

Top Contributors

[![rchouinard](https://avatars.githubusercontent.com/u/146878?v=4)](https://github.com/rchouinard "rchouinard (6 commits)")[![aurora](https://avatars.githubusercontent.com/u/304837?v=4)](https://github.com/aurora "aurora (1 commits)")

---

Tags

compatibilitypbkdf2hash\_pbkdf2

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M212](/packages/defuse-php-encryption)[roave/security-advisories

Prevents installation of composer packages with known security vulnerabilities: no API, simply require it

2.9k97.3M6.4k](/packages/roave-security-advisories)[mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

2.0k16.7M112](/packages/mews-purifier)[robrichards/xmlseclibs

A PHP library for XML Security

41278.1M118](/packages/robrichards-xmlseclibs)[bjeavons/zxcvbn-php

Realistic password strength estimation PHP library based on Zxcvbn JS

86917.5M63](/packages/bjeavons-zxcvbn-php)[illuminate/encryption

The Illuminate Encryption package.

9229.7M277](/packages/illuminate-encryption)

PHPackages © 2026

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