Laravel Cake 1.3 Hash
, (*1)
This package is used to replace Laravel's default hash to support legacy CakePHP 1.3 password hash method., (*2)
Please use it with your own risk, since CakePHP 1.3 is obselete., (*3)
Installation
Using Composer, just run this command below., (*4)
composer require matriphe/laravel-cake13-hash
Configuration
After installed, open config/app.php
and find this line., (*5)
Illuminate\Hashing\HashServiceProvider::class::class
Comment or remove that line and add this line to override Laravel's hash handling., (*6)
Matriphe\Md5Hash\HashServiceProvider::class
Publish config file to hold salt string in config using php artisan vendor:publish
command. This command will create config/cake.php
file., (*7)
Open your app/config/core.php
in your old CakePHP 1.3 directory, find Configure::write('Security.salt', 'S0m3S4lt');
and copy the salt., (*8)
Usage
Now you can use built in hash function using this command., (*9)
Hash::make('password'); // return 94c5b9c5a0d799d938fdad02162ce27651bf81eb
bcrypt('password'); // return 94c5b9c5a0d799d938fdad02162ce27651bf81eb
License
The MIT License (MIT). Please see License File for more information., (*10)