avto-dev / hash-generator-laravel
Reversible hash generator for laravel applications
Installs: 3 735
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 3
Open Issues: 6
Requires
- php: ^8.1
- ext-openssl: *
- illuminate/config: ~10.0 || ~11.0
- illuminate/contracts: ~10.0 || ~11.0
- illuminate/log: ~10.0 || ~11.0
Requires (Dev)
- laravel/laravel: ~10.0 || ~11.0
- mockery/mockery: ^1.6.5
- phpstan/phpstan: ^1.10.66
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2024-11-21 20:00:16 UTC
README
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
composer
is 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-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
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.