Encrypt or decrypt file and choose location and name of the file too,
- Installation
- Usage
- Concerns
- [DevelopmentStrategy](#Development strategy)
- Configuration
- Configuration
- Contributing
- License
To install Enc/Dec File, simply :
1. clone the project.
2. composer install
3. php artisan serve
_Laravel version: 6* php version: 7.3_
From the command line, instead of running php artisan serve
, run:
php artisan serve
URL: localhost:8000/fileUpload
To get file information:-
Button: getFileInformation
to Encrypt file:
you need to select file and a name for that file
to Decrypt file:
same for decrypt
> Could not use the same file for all buttons,
As for security reasons html do not give input:file the ability
to save old file
> Never gave the user the ability to choose the folder outside a specefic folder,
in our example will be StorageFolder,
- so he can choose folder but not that path
- why? : because he choose file name it index.php, and then choose that path
in root server to override my index.php,
WHICH MEANS IAM ACTING AS FTP DOWNLOADER,
he will have full control on the server files.
- By using one form, and three buttons,
- One Controller, One Action Method,
- In which it handels all of the three operations via Switch statements
if you would like to increase file upload size edit php.ini
post_max_size=15M
upload_max_filesize=15M
For SoftLock
MIT