avto-dev/hash-generator-laravel

Reversible hash generator for laravel applications

v1.4.0 2024-05-14 12:40 UTC

README

Laravel

Reversible Hash Generator for Laravel

Version PHP Version Build Status Coverage Downloads count License

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

Release date Commits since latest release

Changes log can be found here.

Support

Issues Issues

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.