terrylucas/md5hasher

md5 supprot in laravel
15
Install
composer require terrylucas/md5hasher
PHP:>=5.6.4
License:MIT
Last Updated:Aug 1, 2017
Links: GitHub  ·  Packagist
Maintainer: tanmillet

Build Status StyleCI

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']);