PHPackages                             lukeelten/cakephp-password-hasher - 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. lukeelten/cakephp-password-hasher

AbandonedArchivedCakephp-plugin[Security](/categories/security)

lukeelten/cakephp-password-hasher
=================================

A set of password hasher for CakePHP 3

1.0.3(6y ago)1278MITPHPPHP &gt;=7.0

Since Aug 28Pushed 6y ago1 watchersCompare

[ Source](https://github.com/lukeelten/cakephp-password-hasher)[ Packagist](https://packagist.org/packages/lukeelten/cakephp-password-hasher)[ RSS](/packages/lukeelten-cakephp-password-hasher/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (4)Versions (5)Used By (0)

Collection of CakePHP Password Hasher
=====================================

[](#collection-of-cakephp-password-hasher)

This project provides a collection of CakePHP password hasher. Most hasher classes use the default password hasher of CakePHP under the hood.

The most useful class is the "Argon2PasswordHasher" which provides the functionality to hash password with the new and more secure Argon2i algorithm. The algorithm has been integrated into PHP 7.2, nevertheless this project provides backwards compatibility to PHP 7.0.

Furthermore, PHP 7.2 on Alpine does not support Argon2i up to now. This project provides a polyfill for that.

Requirements
------------

[](#requirements)

### PHP 7.2

[](#php-72)

You ususally do not need any requirements. It should work out-of-the-box.
**Important:** If you run PHP 7.2 on Alpine Linux, please install the **sodium** extension (php7-sodium).

### PHP 7.0 / 7.1

[](#php-70--71)

Please install the **libsodium** extension, either via PECL or via package manager.

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

[](#installation)

Install via composer. There is no need for plugin loading or special configuration. Just use the project as described below.

```
composer require lukeelten/cakephp-password-hasher
```

Usage
-----

[](#usage)

You can use the Argon2PasswordHasher with the default Auth plugin as seen below.

```
$this->loadComponent('Auth', [
    'authenticate' => [
        'Form' => [
            'passwordHasher' => Argon2PasswordHasher::class
            // 'passwordHasher' => SecurePasswordHasherChain::class
        ]
    ]
];
```

Make sure, that you hash the password correctly when setting the user's model property:

```
class User extends Entity
{
    protected function _setPassword($value) {
        $hasher = new Argon2PasswordHasher();
        return $hasher->hash($value);
    }
}
```

Troubleshooting
---------------

[](#troubleshooting)

If you have problems installing the composer dependencies, delete the "composer.lock" file. It has been generated using PHP 7.2 and may not be suitable for other PHP versions.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~154 days

Total

4

Last Release

2354d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f63467690913a111c356b498813f5a5fe0756501e1e8d3c00b47e0fd5b77810?d=identicon)[lukeelten](/maintainers/lukeelten)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![lukeelten](https://avatars.githubusercontent.com/u/513392?v=4)](https://github.com/lukeelten "lukeelten (1 commits)")

---

Tags

argon2cakephpcakephp-plugincomposerphp7phpsecurityhashingcakephphashpasswordssodiumArgon2i

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lukeelten-cakephp-password-hasher/health.svg)

```
[![Health](https://phpackages.com/badges/lukeelten-cakephp-password-hasher/health.svg)](https://phpackages.com/packages/lukeelten-cakephp-password-hasher)
```

###  Alternatives

[ammardev/laravel-wp-hash-driver

Supports Wordpress passwords hashing and checking in Laravel's Hash facade.

169.3k](/packages/ammardev-laravel-wp-hash-driver)[pentagonal/phpass

PHP password hashing library original by open wall PhPass

121.6k](/packages/pentagonal-phpass)

PHPackages © 2026

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