performing data encryption for the laravel projects
nextbytetz/laravel_encryption is a Laravel package for performing data encryption for the laravel projects.
It currently has 0 GitHub stars and 426 downloads on Packagist.
Install it with composer require nextbytetz/laravel_encryption.
Discover more Laravel packages by nextbytetz
or browse all Laravel packages to compare alternatives.
Last updated
this for encrypt laravel project
Installation
At the first, You have to install phpBolt.
Require the package with composer using the following command:
composer require nextbytetz/laravel_encryption
The service provider will automatically get registered. Or you may manually add the service provider in your config/app.php file:
'providers' => [
// ...
Nextbyte\Encryption\EncryptionServiceProvider::class,
];
You can publish the config file with this following command:
php artisan vendor:publish --provider="Nextbyte\Encryption\EncryptionServiceProvider"
=>some of encryption configuration
'source' => ['app', 'database', 'routes'], // Path(s) to encrypt
'destination' => 'encrypted', // Destination path
'key_length' => 6, // Encryption key length
'zip_filename' => 'folders.zip', // zip filename
'extract_destination' => '/home/blessedkono/encrypted/', // destination project path
'sync_source' => '/var/www/html/next_task/', // clean source path to sync with destination project
Open terminal in project root and run this command:
php artisan encrypt-source
=> You can zip and move encrypted files to new destination
php artisan move-destination
=> You can get package updates by simply use composer update
composer update nextbytetz/laravel_encryption