Skip to content

stidges/laravel-sodium-encryption

Repository files navigation

Laravel Sodium Encryption

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 [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

A Sodium based encrypter class for Laravel

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages