GithubHelp home page GithubHelp logo

abdolrhman / php-encrypt-decrypt-files Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.87 MB

Encrypt / decrypt files with the ability to choose the name and location of file, also get uploaded file information

PHP 77.09% Vue 0.47% HTML 22.44%

php-encrypt-decrypt-files's Introduction

Laravel Encrypt / Decrypt File

License

Encrypt or decrypt file and choose location and name of the file too,

Contents

Installation

To install Enc/Dec File, simply :

1. clone the project.
2. composer install
3. php artisan serve

_Laravel version: 6* php version: 7.3_

Usage

From the command line, instead of running php artisan serve, run:

php artisan serve
URL: localhost:8000/fileUpload

Choose A File to Upload

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

Concerns

> 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.

Development strategy

  • By using one form, and three buttons,
  • One Controller, One Action Method,
  • In which it handels all of the three operations via Switch statements

Configuration

if you would like to increase file upload size edit php.ini

post_max_size=15M
upload_max_filesize=15M

License

For SoftLock
MIT

php-encrypt-decrypt-files's People

Contributors

abdolrhman avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.