Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrothers/libsodium-laravel
Laravel integration for libsodium
https://github.com/scrothers/libsodium-laravel
Last synced: about 1 month ago
JSON representation
Laravel integration for libsodium
- Host: GitHub
- URL: https://github.com/scrothers/libsodium-laravel
- Owner: scrothers
- License: mit
- Created: 2015-09-09T15:03:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-03-04T21:33:45.000Z (almost 9 years ago)
- Last Synced: 2024-06-26T11:36:30.365Z (7 months ago)
- Language: PHP
- Size: 19.5 KB
- Stars: 21
- Watchers: 5
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Libsodium for Laravel
This library is meant to be a fairly expansive encryption replacement to Laravel's built in methods. The goals is that by default it will replace the encryption and the hashing mechanisms of Laravel with compatible methods powered by libsodium.## How to Install
First thing you need to do is install the components you want to replace in Laravel in your `app.cfg` file from your config directory.### Sodium Encrypter Install
In `app.cfg` replace `Illuminate\Encryption\EncryptionServiceProvider::class` with `scrothers\laravelsodium\Providers\EncryptionProvider::class`.### Sodium Hasher Install
In `app.cfg` replace `Illuminate\Hashing\HashServiceProvider::class` with `scrothers\laravelsodium\Providers\HashProvider::class`.## About Sodium
The original Sodium project can be located [here](https://github.com/jedisct1/libsodium), the about Sodium is obtained from the readme in the source repository.Sodium is a new, easy-to-use software library for encryption,
decryption, signatures, password hashing and more.It is a portable, cross-compilable, installable, packageable
fork of [NaCl](http://nacl.cr.yp.to/), with a compatible API, and an
extended API to improve usability even further.Its goal is to provide all of the core operations needed to build
higher-level cryptographic tools.Sodium supports a variety of compilers and operating systems,
including Windows (with MingW or Visual Studio, x86 and x64), iOS and Android.