koenhoeijmakers / laravel-argon2
Argon2 implementation
Installs: 1 393
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^7.2
- illuminate/hashing: 5.0 - 5.5
Requires (Dev)
- phpunit/phpunit: ^7.0
This package is auto-updated.
Last update: 2024-10-28 04:53:55 UTC
README
Pull request #21885 on the framework's repository has made this package obsolete as Argon2 hashing will be added in Laravel's [5.6] release, therefore this package will only support from version [5.0] to [5.5].
Laravel Argon2
A drop-in Argon2 implementation for Laravel.
(which will be usable from PHP 7.2
if compiled with the --with-password-argon2
option)
As the RFC states, the Argon2d variant will not be implemented into php, and therefore we can call our package Argon2 as an alias to Argon2i.
Disclaimer
Please be careful while changing the HashServiceProviders, if your application is already up and running and in some way relies on bcrypt, then it is probably a bad idea, as this replaces the standard bcrypt functionality from your Laravel installation. (given that it is replaced by Argon2)
Installation
Require the package.
composer require koenhoeijmakers/laravel-argon2
Search inside the config/app.php
for the Illuminate\Hashing\HashServiceProvider::class
and replace it with the KoenHoeijmakers\LaravelArgon2\HashServiceProvider::class
.
'providers' => [ //... //Illuminate\Hashing\HashServiceProvider::class, KoenHoeijmakers\LaravelArgon2\HashServiceProvider::class, //... ],
Usage
If you have replaced your HashServiceProvider with the provider delivered by this package, you may now use the laravel hash functionality the same way as you used to.
FAQ
Q: Can i use this package when there are bcrypt hashes in my database?
A: That is not a problem as these can still be verified.