Download the PHP package brokerexchange/mcrypthasher without Composer
On this page you can find all versions of the php package brokerexchange/mcrypthasher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download brokerexchange/mcrypthasher
More information about brokerexchange/mcrypthasher
Files in brokerexchange/mcrypthasher
Package mcrypthasher
Short Description Mcrypt Hasher For Laravel Auth
License MIT
Homepage http://brokerexchange.github.io/McryptHasher/
Informations about the package mcrypthasher
McryptHasher
Mcrypt Hasher For Laravel Auth
This package will replace Laravel's default hash service provider.
Installation
-
composer require brokerexchange/mcrypthasher
-
(Optional) Publish the config
php artisan vendor:publish --tag=mcrypt
-
(Optional) Add MCRYPT_KEY to your .env file
MCRYPT_KEY='My awesome hash key'
note: this step is optional because APP_KEY will be used if MCRYPT_KEY is not provided in your project.
-
If you are using Laravel 5.5+, this package will be auto-discovered. Otherwise, add
McryptHasher\McryptHasherServiceProvider::class,
to config/app.php - In the
config/hashing.php
file update thedriver
value to 'mcrypt':
Usage
Once installed the mcrypt hasher will automatically be used during authentication and registration. If you wish to use
the package manually, you may now use the Hash facade. ex: Hash::make('12345')
If you wish to continue using other hash drivers, add a driver function call to the Hash facade chain. ex: Hash::driver('bcrypt')->make('12345')
Copyright © 2023 Broker Exchange Network
All versions of mcrypthasher with dependencies
illuminate/support Version ^5.2|^6.0|^7.0|^8.0|^9.0|^10.0