A Sodium based Encrypter class for Laravel, with the same API as the built-in Encrypter class.
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!
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.
$ composer test
Please see CONTRIBUTING for details.
If you discover any security related issues, please email info@stidges.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.