hash-generator-laravel maintained by avto-dev
Reversible Hash Generator for Laravel
Install
Require this package with composer using the following command:
$ composer require avto-dev/hash-generator-laravel "^1.0"
Installed
composeris required (how to install composer).
You need to fix the major version of package.
Setup
После установки пакета вам необходимо произвести его настройку в файле config/hash-generator.php:
<?php
return [
'cipher_algo' => 'aes-128-cfb',
'passphrase' => 'pass_phrase', // Случайную строку
'options' => 0,
];
Где
cipher_algo- алгоритм шифрованияpassphrase- фраза для получения хэшаoptions- одно из значенийOPENSSL_RAW_DATA,OPENSSL_ZERO_PADDING.
Использование
Testing
For package testing we use phpunit framework and docker with compose plugin as develop environment. So, just write into your terminal after repository cloning:
$ make build
$ make latest # or 'make lowest'
$ make test
Changes log
Changes log can be found here.
Support
If you will find any package errors, please, make an issue in current repository.
License
This is open-sourced software licensed under the MIT License.