{"id":16467270,"url":"https://github.com/irfaardy/encrypt-file-laravel","last_synced_at":"2025-10-27T13:30:41.669Z","repository":{"id":56993421,"uuid":"242313070","full_name":"irfaardy/encrypt-file-laravel","owner":"irfaardy","description":"🛡️A Simple Laravel Encrypt uploaded file plugin","archived":false,"fork":false,"pushed_at":"2022-01-19T08:55:37.000Z","size":32,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T05:41:21.295Z","etag":null,"topics":["aes256","encrypt","encrypt-file","laravel","php7","secure","security","storage","upload","upload-file"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irfaardy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"irfa","ko_fi":"irfaardy","custom":["https://buymeacoff.ee/irfaardy"]}},"created_at":"2020-02-22T09:19:30.000Z","updated_at":"2023-04-04T06:53:05.000Z","dependencies_parsed_at":"2022-08-21T12:50:54.274Z","dependency_job_id":null,"html_url":"https://github.com/irfaardy/encrypt-file-laravel","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irfaardy%2Fencrypt-file-laravel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irfaardy%2Fencrypt-file-laravel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irfaardy%2Fencrypt-file-laravel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irfaardy%2Fencrypt-file-laravel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irfaardy","download_url":"https://codeload.github.com/irfaardy/encrypt-file-laravel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238497695,"owners_count":19482299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aes256","encrypt","encrypt-file","laravel","php7","secure","security","storage","upload","upload-file"],"created_at":"2024-10-11T11:46:48.801Z","updated_at":"2025-10-27T13:30:41.140Z","avatar_url":"https://github.com/irfaardy.png","language":"PHP","funding_links":["https://patreon.com/irfa","https://ko-fi.com/irfaardy","https://buymeacoff.ee/irfaardy","https://www.buymeacoffee.com/OBaAofN"],"categories":[],"sub_categories":[],"readme":"\n\n# 🚀Simple Laravel Encrypt Upload File\n[![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)\n\n\u003cp\u003eThe Simple Laravel Encrypt Upload File uses the default encryption of Laravel which is implemented in upload file.\u003cp\u003e\n\u003ch3\u003e🛠️ Installation with Composer \u003c/h3\u003e\n\n    composer require irfa/encrypt-file-laravel\n\n\u003eYou can get Composer [ here]( https://getcomposer.org/download/)\n\n***\n\n\n\u003ch2\u003e🛠️ Laravel Setup \u003c/h2\u003e\n\n\u003ch3\u003eAdd to config/app.php\u003c/h3\u003e\n\n    'providers' =\u003e [\n        ....\n        Irfa\\FileSafe\\FileSafeServiceProvider::class,\n         ];\n\n\n\n\u003ch3\u003eAdd to config/app.php\u003c/h3\u003e\n\n    'aliases' =\u003e [\n             ....\n      'FileSafe' =\u003e Irfa\\FileSafe\\Facades\\FileSafe::class,\n    \n        ],\n\n  \u003ch2\u003ePublish Vendor\u003c/h2\u003e\n\n\n    php artisan vendor:publish --tag=file-safe\n\n\u003ch2\u003eConfig File\u003c/h2\u003e\n\n    config/irfa/filesafe.php\n\n\u003ch2\u003eExample store file\u003c/h2\u003e\n\n\n    \u003c?php\n    \n    namespace App\\Http\\Controllers;\n    \n    use Filesafe;\n    use Illuminate\\Http\\Request;\n    use App\\Http\\Controllers\\Controller;\n    \n    class FileController extends Controller\n    {\n       \n        public function upload_file(Request $request)\n        {\n           $file = $request-\u003efile('file');\n           FileSafe::store($file);\n    //This is to encrypt the file before it is uploaded to the server.\n\n        }\n    }\n\n\u003ch2\u003eExample download file\u003c/h2\u003e\n\n\n    \u003c?php\n    \n    namespace App\\Http\\Controllers;\n    \n    use FileSafe;\n    use Illuminate\\Http\\Request;\n    use App\\Http\\Controllers\\Controller;\n    \n    class FileController extends Controller\n    {\n       \n        public function upload_file(Request $request)\n        {\n           $file = 'encrypted_file.txt';\n           return FileSafe::download($file);\n\t\t    //decrypt files to be downloaded.\n        }\n    }\n\n\u003ch3\u003eView Raw File\u003c/h3\u003e\n\n    ...\n\t    $file = 'encrypt_file.txt';\n\t    return FileSafe::file($file)-\u003eraw();\n\t...\n\n\u003ch2\u003eContribution\u003c/h2\u003e\nENG:\u003cbr\u003e\nIf you want to contribute this project and make it better, your help is very welcome.\u003cbr\u003e\nIDN:\u003cbr\u003e\nJika Anda ingin berkontribusi dalam proyek ini dan menjadikannya lebih baik, bantuan Anda sangat kami harapkan.\n\n***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firfaardy%2Fencrypt-file-laravel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firfaardy%2Fencrypt-file-laravel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firfaardy%2Fencrypt-file-laravel/lists"}