octha/joth-laravel

Encrypt and decrypt requests and responses data on laravel.

dev-main 2022-04-28 21:20 UTC

This package is auto-updated.

Last update: 2024-10-29 02:58:31 UTC


README

License Latest Stable Version Total Downloads

Why use this?

If you need to transit sensitive data you know leaving it in plaintext is not ideal, so using a layer that makes the data more difficult to capture is essential.

Installation

composer require octha/joth-laravel

Configuration

Publish the config file to your config folder.

php artisan vendor:publish --tag=octha/joth-laravel/config

Set a env variable JOTH_KEY with your key.

Usage

This package needs a front-end layer. See the joth jquery.

After includes the front-end layer, set a secret as same defined on your configuration file.

Extra

If you need modify the middlewares, publish them

php artisan vendor:publish --tag=octha/joth-laravel/middlewares

Not is necessary add the middlewares to your routes or on kernel.

License

This package is licensed under the MIT license © Octha.