An open API service indexing awesome lists of open source software.

https://github.com/irfaardy/encrypt-file-laravel

🛡️A Simple Laravel Encrypt uploaded file plugin
https://github.com/irfaardy/encrypt-file-laravel

aes256 encrypt encrypt-file laravel php7 secure security storage upload upload-file

Last synced: 8 months ago
JSON representation

🛡️A Simple Laravel Encrypt uploaded file plugin

Awesome Lists containing this project

README

          

# 🚀Simple Laravel Encrypt Upload File
[![GitHub license](https://img.shields.io/github/license/irfaardy/encrypt-file-laravel?style=flat-square)](https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE) [![Support me](https://img.shields.io/badge/Support-Buy%20me%20a%20coffee-yellow.svg?style=flat-square)](https://www.buymeacoffee.com/OBaAofN)

The Simple Laravel Encrypt Upload File uses the default encryption of Laravel which is implemented in upload file.


🛠️ Installation with Composer

composer require irfa/encrypt-file-laravel

>You can get Composer [ here]( https://getcomposer.org/download/)

***

🛠️ Laravel Setup

Add to config/app.php

'providers' => [
....
Irfa\FileSafe\FileSafeServiceProvider::class,
];

Add to config/app.php

'aliases' => [
....
'FileSafe' => Irfa\FileSafe\Facades\FileSafe::class,

],

Publish Vendor

php artisan vendor:publish --tag=file-safe

Config File

config/irfa/filesafe.php

Example store file

file('file');
FileSafe::store($file);
//This is to encrypt the file before it is uploaded to the server.

}
}

Example download file

View Raw File

...
$file = 'encrypt_file.txt';
return FileSafe::file($file)->raw();
...

Contribution


ENG:

If you want to contribute this project and make it better, your help is very welcome.

IDN:

Jika Anda ingin berkontribusi dalam proyek ini dan menjadikannya lebih baik, bantuan Anda sangat kami harapkan.

***