tanmillet / lucashasher by tanmillet

md5 supprot in laravel
15
0
2
Package Data
Maintainer Username: tanmillet
Maintainer Contact: tanmillet@sina.com (Terry Lucas)
Package Create Date: 2017-07-20
Package Last Update: 2017-08-01
Home Page:
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:07:44
Package Statistics
Total Downloads: 15
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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