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
- Host: GitHub
- URL: https://github.com/irfaardy/encrypt-file-laravel
- Owner: irfaardy
- License: mit
- Created: 2020-02-22T09:19:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-01-19T08:55:37.000Z (over 4 years ago)
- Last Synced: 2025-02-01T05:41:21.295Z (over 1 year ago)
- Topics: aes256, encrypt, encrypt-file, laravel, php7, secure, security, storage, upload, upload-file
- Language: PHP
- Homepage:
- Size: 31.3 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# 🚀Simple Laravel Encrypt Upload File
[](https://github.com/irfaardy/encrypt-file-laravel/blob/master/LICENSE) [](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.
***