stidges / laravel-sodium-encryption
A Sodium based encrypter class for Laravel
Requires
- php: >=7.2
- ext-sodium: *
- illuminate/support: ~5.7|~5.8
Requires (Dev)
- phpunit/phpunit: >=7.0
- squizlabs/php_codesniffer: ~3.0
This package is auto-updated.
Last update: 2024-10-29 05:28:43 UTC
README
A Sodium based Encrypter class for Laravel, with the same API as the built-in Encrypter class.
Install
You can install the package via Composer:
$ composer require stidges/laravel-sodium-encryption
The service provider is registered through auto-discovery, so you can start using it out of the box!
Usage
You can resolve the Encrypter class from Laravel's service container:
use Stidges\LaravelSodiumEncryption\Encrypter; $encrypter = app(Encrypter::class); // or $encrypter = app('encrypter.sodium');
The API is the same as Laravel's built-in Encrypter class, so please review the official Laravel documentation on how to use it.
Testing
$ composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email info@stidges.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.