Laravel MD5 Hash
, (*1)
This package is used to replace Laravel default hash to support the old system that used MD5 for password hash., (*2)
Warning
Please use it at your own risk, since MD5 is not recommended to be used as a password hash., (*3)
Installation
Using Composer, just run this command below., (*4)
composer require matriphe/laravel-md5-hash
For Laravel < 6, please use version 1.1.1 and follow the
configuration instruction., (*5)
composer require matriphe/laravel-md5-hash:1.1.1
Configuration
This package uses auto-discovery. Once it got installed, it will automatically replace the hash function to use MD5., (*6)
Usage
Now you can use the built-in hash function using this command., (*7)
Hash::make('password'); // return 5f4dcc3b5aa765d61d8327deb882cf99
bcrypt('password'); // return 5f4dcc3b5aa765d61d8327deb882cf99
Contribution
All contributions are welcomed. Please create a pull request or merge request, and make sure all checks are passed ✅
before merging., (*8)
If the check failed on checking PHP style, please
run php-cs-fixer
to fix it., (*9)
Using Docker
docker run -it --rm -v $(pwd):/app -w /app oskarstark/php-cs-fixer-ga fix
Local Dev
vendor/bin/php-cs-fixer fix
License
The MIT License (MIT). Please see License File for more information., (*10)