marcus-campos / laravel-md5-hash
Laravel 5 package to use unsecured MD5 for password hash. For use in legacy systems.
v1.0.0
2018-07-26 11:57 UTC
Requires
- illuminate/support: 5.*
Requires (Dev)
- phpunit/phpunit: ^5.0|^6.0
This package is auto-updated.
Last update: 2024-12-11 15:18:31 UTC
README
This package is used to replace Laravel's default hash to support legacy systems that used MD5 for password hash.
Please use it with your own risk, since MD5 is not recommended to be used as password hash.
Installation
Using Composer, just run this command below.
composer require marcus-campos/laravel-md5-hash
Configuration
After installed, open config/app.php
and find this line.
Illuminate\Hashing\HashServiceProvider::class
Comment or remove that line and add this line to override Laravel's hash handling.
L5MD5Hash\Md5Hash\HashServiceProvider::class
Usage
Now you can use built in hash function using this command.
Hash::make('password'); // return 5f4dcc3b5aa765d61d8327deb882cf99 bcrypt('password'); // return 5f4dcc3b5aa765d61d8327deb882cf99
Tanks
Contact
Marcus Campos - campos.v.marcus@gmail.com
License
The MIT License (MIT). Please see License File for more information.