terrylucas/md5hasher
Installation
Require this package with composer:
composer require terrylucas/md5hasher dev-master
After updating composer, add the ServiceProvider to the providers array in config/app.php
Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider
Laravel 5.x:
TerryLucas2017\Hasher\LucasMD5Provider::class,
Usage
$hashValue = app('lucasmd5')->make('123456');
$isEqual = app('lucasmd5')->check('123456' , $hashValue);
$hashValue = app('lucasmd5')->make('123456' , ['salt' => 'terry']);
$isEqual = app('lucasmd5')->check('123456' , $hashValue , ['salt' => 'terry']);