PHPackages                             elcodedocle/phpass - 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. elcodedocle/phpass

ActiveClass[Security](/categories/security)

elcodedocle/phpass
==================

fork of Solar Designer's http://www.openwall.com/phpass/ with enhanced security updates

0.3.0(8y ago)3441MITPHPPHP &gt;=3.0.18

Since Feb 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/elcodedocle/phpass)[ Packagist](https://packagist.org/packages/elcodedocle/phpass)[ Docs](https://github.com/elcodedocle/phpass)[ RSS](/packages/elcodedocle-phpass/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

phpass by elcodedocle
=====================

[](#phpass-by-elcodedocle)

\#####*A phpass portable PHP password hashing framework upgrade for these modern times we're living in*

Copyright (C) 2013 Gael Abadin
License: [MIT Expat](https://raw.githubusercontent.com/elcodedocle/phpass/master/LICENSE)
[![Code Climate](https://camo.githubusercontent.com/57ce28fa91215fbe6b9047437114e6aa718a13b45b6eba6b223ff80dabc00b8b/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f656c636f6465646f636c652f7068706173732e706e67)](https://codeclimate.com/github/elcodedocle/phpass)

### How to use

[](#how-to-use)

The same way as regular phpass; check out the embedded phpdoc for info on the extras.

### Motivation

[](#motivation)

I wanted to implement proper hashing on my web app. password\_hash seemed the way to go, but it's only supported by the most recent versions of PHP (at the time of writing this, PHP 5.5.0 was realeased just a few months ago...).

So I did some research and the most reasonably fast and tested library was phpass, but it lacked support for, guess what, password\_hash. Since password\_hash should be the default option (at last, a sane way to use crypt!) and none of the other phpass hacks I checked (Drupal, WordPress) had it I decided to add it myself.

In the process, adding also support for sha512 and sha256 on portable methods seemed easy enough, so I beefed that up too.

### Acks

[](#acks)

Solar Designer, author of the original library at

Enjoy!

(

And, if you're happy with this by-product, donate!

bitcoin: 1P4AFJMt5VbWq6o49BEwxk4kAkkHFm9Jv7

dogecoin: DEZrHzf6ajynL3XfLHDzjT9WpoR4eszxNA

paypal:

)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

3010d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3731026?v=4)[elcodedocle](/maintainers/elcodedocle)[@elcodedocle](https://github.com/elcodedocle)

---

Top Contributors

[![elcodedocle](https://avatars.githubusercontent.com/u/3731026?v=4)](https://github.com/elcodedocle "elcodedocle (11 commits)")

---

Tags

bcryptpassword hashingpassword hashphpasssecure password storagerainbow attack protectionpassword\_verifypassword salting

### Embed Badge

![Health badge](/badges/elcodedocle-phpass/health.svg)

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

###  Alternatives

[defuse/php-encryption

Secure PHP Encryption Library

3.9k162.4M214](/packages/defuse-php-encryption)[mews/purifier

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

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

A PHP library for XML Security

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

Realistic password strength estimation PHP library based on Zxcvbn JS

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

The Illuminate Encryption package.

9229.7M280](/packages/illuminate-encryption)[jeremykendall/password-validator

Password Validator validates password\_hash generated passwords, rehashes passwords as necessary, and will upgrade legacy passwords.

14469.9k3](/packages/jeremykendall-password-validator)

PHPackages © 2026

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