Download the PHP package tzsk/crypton without Composer
On this page you can find all versions of the php package tzsk/crypton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package crypton
Short Description Laravel API Request Response Encryption
License MIT
Homepage https://github.com/tzsk/crypton
Informations about the package crypton
:gift: Laravel Crypton
TThis is a simple package for laravel to encrypt decrypt api request & response in both ends, Backend & Javascript.
:package: Installation
Via Composer
Publish config file
Add an environment variable in the .env
file
:eyes: Keep in Mind
TIP: You can easily generate an encryption key by running
php artisan key:generate
then copy the generated key. Then again run:php artisan key:generate
to make the key used by crypton and the default application key different.
WARNING: DO NOT USE THE SAME APP_KEY
AND CRYPTON_KEY
:fire: Usage
Start off by adding a Middleware in the app/Http/Kernel.php
file.
Now, add this middleware to any api routes or groups.
Example:
That's it.
:heart_eyes: Javascript adapter
:microscope: Testing
:date: Changelog
Please see CHANGELOG for more information on what has changed recently.
:crown: Contributing
Please see CONTRIBUTING for details.
:lock: Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
:heart: Credits
- Kazi Ahmed
- All Contributors
:policeman: License
The MIT License (MIT). Please see License File for more information.
All versions of crypton with dependencies
illuminate/console Version ^7.0|^8.0
illuminate/encryption Version ^7.0|^8.0
illuminate/http Version ^7.0|^8.0
illuminate/support Version ^7.0|^8.0