PHPackages                             spomky-labs/pbkdf2 - 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. spomky-labs/pbkdf2

AbandonedArchivedLibrary[Security](/categories/security)

spomky-labs/pbkdf2
==================

Password Based Key Derivation Function 2

v1.0.4(10y ago)22.8k1[1 PRs](https://github.com/Spomky-Labs/pbkdf2/pulls)MITPHPPHP &gt;=5.3

Since Jan 4Pushed 7y ago2 watchersCompare

[ Source](https://github.com/Spomky-Labs/pbkdf2)[ Packagist](https://packagist.org/packages/spomky-labs/pbkdf2)[ Docs](https://github.com/Spomky-Labs/pbkdf2)[ RSS](/packages/spomky-labs-pbkdf2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

Password Based Key Derivation Function 2 (PBKDF2)
=================================================

[](#password-based-key-derivation-function-2-pbkdf2)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/d0cb64858e60026924f9d55d0e3abbde2854cfa9122b301af28a484426486cfe/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53706f6d6b792d4c6162732f70626b6466322f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Spomky-Labs/pbkdf2/?branch=master)[![Coverage Status](https://camo.githubusercontent.com/4110a5d6f5f590eaf4b168d62a5bd9543c94255724a9e9fcca432cfa15509ff0/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f53706f6d6b792d4c6162732f70626b6466322f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/Spomky-Labs/pbkdf2?branch=master)

[![Build Status](https://camo.githubusercontent.com/3a0fc0578b2cb2e78ac6a5e520789f328c70080ad2b3a20cdafe30918062541e/68747470733a2f2f7472617669732d63692e6f72672f53706f6d6b792d4c6162732f70626b6466322e7376673f6272616e63683d72656c6561736525324676312e302e30)](https://travis-ci.org/Spomky-Labs/pbkdf2)[![StyleCI](https://camo.githubusercontent.com/017075c599f5e37ff6fc4a080bcc61e85939eff8acfce40da5ebfb7d6697b101/68747470733a2f2f7374796c6563692e696f2f7265706f732f32383737343732362f736869656c64)](https://styleci.io/repos/28774726)

[![HHVM Status](https://camo.githubusercontent.com/4bd2f0575554fc75933edd42238a3efe91e1963913e27bec773bb933dc6b520e/687474703a2f2f6868766d2e683463632e64652f62616467652f53706f6d6b792d4c6162732f70626b6466322e706e67)](http://hhvm.h4cc.de/package/Spomky-Labs/pbkdf2)[![PHP 7 ready](https://camo.githubusercontent.com/32ab6a9c4c692bb935cf1b5c14563f4b5a43bc22fae734c5bb8611178370e317/687474703a2f2f7068703772656164792e74696d6573706c696e7465722e63682f53706f6d6b792d4c6162732f70626b6466322f62616467652e737667)](https://travis-ci.org/Spomky-Labs/pbkdf2)

[![SensioLabsInsight](https://camo.githubusercontent.com/940e8be0eb23cbcd5e2928672bd6f5f176b5483ed44d83b56911298f3dde10d0/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f61383939316239622d616333352d343032662d613363632d3231633839373837663834302f6269672e706e67)](https://insight.sensiolabs.com/projects/a8991b9b-ac35-402f-a3cc-21c89787f840)

[![Latest Stable Version](https://camo.githubusercontent.com/6d4c8e2bf1cf3b078883a38e9e9af88f648585777d1315fad3cf58dfc943a5b6/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f70626b6466322f762f737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/pbkdf2) [![Total Downloads](https://camo.githubusercontent.com/62e92b5c0d253d25a0768b8cd772542a9579b9243aa72210c4f4458acef4e246/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f70626b6466322f646f776e6c6f6164732e706e67)](https://packagist.org/packages/Spomky-Labs/pbkdf2) [![Latest Unstable Version](https://camo.githubusercontent.com/714d012351adc320f50c3864ee6894bb63e1880d6cc5c194d1dfb24d33861314/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f70626b6466322f762f756e737461626c652e706e67)](https://packagist.org/packages/Spomky-Labs/pbkdf2) [![License](https://camo.githubusercontent.com/a31c10575e72df2aa21260d9af798c7e0944eb62a5f3e1ec6cf2fa6dd230061e/68747470733a2f2f706f7365722e707567782e6f72672f53706f6d6b792d4c6162732f70626b6466322f6c6963656e73652e706e67)](https://packagist.org/packages/Spomky-Labs/pbkdf2)

This library implements the PBKDF2 algorithm ([RFC2898](http://www.ietf.org/rfc/rfc2898.txt) and [RFC6070](http://www.ietf.org/rfc/rfc6070.txt)). Please note that if you use PHP 5.5+, this library is useless. From PHP 5.5, you can use `hash_pbkdf2` directly.

The Release Process
-------------------

[](#the-release-process)

The release process [is described here](doc/Release.md).

Prerequisites
-------------

[](#prerequisites)

This library needs at least `PHP 5.3`.

It has been successfully tested using `PHP 5.3` to `PHP 5.6`, `PHP 7.0` and `HHVM`.

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

[](#installation)

The preferred way to install this library is to rely on Composer:

```
composer require "spomky-labs/pbkdf2" "~1.0.0"
```

How to use
----------

[](#how-to-use)

Take a look at [How to use](doc/Use.md) to use this library.

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

[](#contributing)

Requests for new features, bug fixed and all other ideas to make this library useful are welcome. [Please follow these best practices](doc/Contributing.md).

Licence
-------

[](#licence)

This software is release under [MIT licence](LICENSE).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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 ~73 days

Recently: every ~67 days

Total

6

Last Release

3777d ago

Major Versions

v0.1.0 → v1.0.02015-04-12

### Community

Maintainers

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

---

Top Contributors

[![Spomky](https://avatars.githubusercontent.com/u/1091072?v=4)](https://github.com/Spomky "Spomky (14 commits)")

---

Tags

pbkdf2RFC2898RFC6070

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/spomky-labs-pbkdf2/health.svg)

```
[![Health](https://phpackages.com/badges/spomky-labs-pbkdf2/health.svg)](https://phpackages.com/packages/spomky-labs-pbkdf2)
```

###  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.7M278](/packages/illuminate-encryption)

PHPackages © 2026

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