terrylucas/md5hasher

md5 supprot in laravel

dev-master 2017-08-01 02:37 UTC

This package is not auto-updated.

Last update: 2025-02-10 08:44:51 UTC


README

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