stidges/laravel-sodium-encryption

A Sodium based encrypter class for Laravel

1.0.0 2019-05-29 14:04 UTC

This package is auto-updated.

Last update: 2024-11-29 05:51:04 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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.