arispati / laravel-encrypt-file
Laravel package for encrypt and decrypt file
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/arispati/laravel-encrypt-file
Requires
- php: ^7|^8
- arispati/php-encrypt-file: 0.1.0
- illuminate/support: ~5.0|~6.0|~7.0|^8.0
README
Laravel library for encrypt and decrypt file
How to Install
- Install with composer
composer require arispati/laravel-encrypt-file
How to Use
use Arispati\LaravelEncryptFile\Crypt; // set file path $source = Storage::disk('local')->path('image.jpg'); $encrypted = Storage::disk('local')->path('encrypted.jpg'); $decrypted = Storage::disk('local')->path('decrypted.jpg'); // Encrypt the file Crypt::encrypt($source, $encrypted); // Decrypt the file Crypt::decrypt($encrypted, $decrypted);