dan142/laravel-hashing-mysql

Installs: 7

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/dan142/laravel-hashing-mysql

v1.0.0 2024-01-16 12:51 UTC

This package is auto-updated.

Last update: 2025-12-16 17:05:27 UTC


README

Laravel MySQL Hasher

Adds support for the password hashing algorithms used by MySQL's now-deprecated PASSWORD() and OLD_PASSWORD() functions to the Laravel Hasher. This is intended to assist in migration from these to more modern and secure algorithms.

Installation

Add the package with composer.

composer require dan142/laravel-hashing-mysql

Using as the default driver

Edit config/hashing.php and change the driver to either mysqlpassword or mysqloldpassword, depending on which you need.

'driver' => 'mysqlpassword',

Using independently of the default driver

You can specify the driver you'd like to use when using the Hash facade like so:

Hash::driver('mysqlpassword')->make("hash");
Hash::driver('mysqloldpassword')->make("hash");