Require this package with composer using the following command:
$ composer require avto-dev/hash-generator-laravel "^1.0"
Installed
composer
is required (how to install composer).
You need to fix the major version of package.
После установки пакета вам необходимо произвести его настройку в файле 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
.
For package testing we use phpunit
framework and docker-ce
+ docker-compose
as develop environment. So, just write into your terminal after repository cloning:
$ make build
$ make latest # or 'make lowest'
$ make test
Changes log can be found here.
If you will find any package errors, please, make an issue in current repository.
This is open-sourced software licensed under the MIT License.