Git Product home page Git Product logo

laravel-md5-hash's Introduction

Laravel MD5 Hash

Laravel MD5 Hash Total Download Latest Stable Version

This package is used to replace Laravel default hash to support the old system that used MD5 for password hash.

Warning Please use it at your own risk, since MD5 is not recommended to be used as a password hash.

Installation

Using Composer, just run this command below.

composer require matriphe/laravel-md5-hash

For Laravel < 6, please use version 1.1.1 and follow the configuration instruction.

composer require matriphe/laravel-md5-hash:1.1.1

Configuration

This package uses auto-discovery. Once it got installed, it will automatically replace the hash function to use MD5.

Usage

Now you can use the built-in hash function using this command.

Hash::make('password'); // return 5f4dcc3b5aa765d61d8327deb882cf99
bcrypt('password'); // return 5f4dcc3b5aa765d61d8327deb882cf99

Contribution

All contributions are welcomed. Please create a pull request or merge request, and make sure all checks are passed โœ… before merging.

If the check failed on checking PHP style, please run php-cs-fixer to fix it.

Using Docker

docker run -it --rm -v $(pwd):/app -w /app oskarstark/php-cs-fixer-ga fix

Local Dev

vendor/bin/php-cs-fixer fix

License

The MIT License (MIT). Please see License File for more information.

laravel-md5-hash's People

Contributors

marcus-campos avatar marky291 avatar matriphe avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

laravel-md5-hash's Issues

internal error

Class Matriphe\Md5Hash\Md5Hash contains 1 abstract method and must therefore be declared abstract or implement the remaining methods

and when use with Laravel Passport produce another error too

"Argument 1 passed to Laravel\Passport\Bridge\UserRepository::__construct() must be an instance of Illuminate\Hashing\HashManager, instance of Matriphe\Md5Hash\Md5Hash given"

Add Laravel 10 Support

The laravel-md5-hash helps me a lot, but it cannot upgrade to Laravel 10 now.
Can you add Laravel 10 Support? Thanks.

Class Matriphe\Md5Hash\Md5Hash contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Illuminate\Contracts\Hashing\Hasher::info)

"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"require": {
"php": "^7.1.3",
"cmgmyr/messenger": "^2.19",
"fideloper/proxy": "^4.0",
"laravel/framework": "5.8.*",
"laravel/tinker": "^1.0",
"matriphe/laravel-md5-hash": "^1.0"
},

don't implements function info() of Hasher

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.