parsidev/encryption

AES Encryption for Laravel 5.5
56
Install
composer require parsidev/encryption
PHP:>=7.1.3
License:MIT
Last Updated:Oct 14, 2021
Links: GitHub  ·  Packagist
Maintainer: parsidev

Requirement

Laravel 5.5

installation

For install this package Edit your project's composer.json file to require parsidev/encryption

"require": {
    "parsidev/encryption": "dev-master"
},

Now, update Composer:

composer update

Once composer is finished, you need to add the service provider. Open config/app.php, and add a new item to the providers array.

Parsidev\Encryption\EncryptionServiceProvider::class,

Next, add a Facade for more convenient usage. In config/app.php add the following line to the aliases array:

'Encryption' => Parsidev\Encryption\Facades\Encryption::class

Publish config files:

php artisan vendor:publish --provider="Parsidev\Encryption\EncryptionServiceProvider"

Usage

Before using this package you must add your custom key(s) to encryption.php in config folder This package can encrypt your text to the count of keys entered in the config file.

Encrypt

Encryption::encrypt($text);

Decrypt

Encryption::decrypt($text);

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

634,760,849 9,707
laravel/framework

The Laravel Framework.

584,532,650 34,931
laravel/tinker

Powerful REPL for the Laravel framework.

493,838,477 7,443
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

408,553,772 609
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

387,976,821 4,658