|
| 1 | +# File Encryption-Decryption Web-app |
| 2 | +A file encryption-decryption HTTP server. The server encrypts or decrypts the file present on the server. File encryption and decryption is performed using [DES](https://www.cs.uri.edu/cryptography/dessimplified.htm#:~:text=Simplified%20DES%20is%20an%20algorithm,on%20blocks%20of%2012%20bits.) algorithm. |
| 3 | +The encryption and decryption operation are exposed using REST APIs(The usage is explained below). For efficient routing and implementation of REST APIs gorilla mux server is used. |
| 4 | + |
| 5 | +## How To Use |
| 6 | +1. Clone the project |
| 7 | +2. Open the folder in command prompt |
| 8 | +3. Run "go build" |
| 9 | +4. Run "fes" |
| 10 | +5. For encrypting a file, send a HTTP GET request using the url: http://localhost:8080/encrypt?filename=YourFileName. The server creates a file named as YourFileName.enc at the same location where the original file is present. |
| 11 | +6. For decrypting a file, send a HTTP GET request using the url: http://localhost:8080/decrypt?filename=YourFileName. In this case, only the name of the file and not the ".enc" should be sent through the url. The file is decrypted and stored at the same location of the encrypted file. |
| 12 | + |
| 13 | +## Dependencies |
| 14 | +1. [gorilla-mux](https://github.com/gorilla/mux): A powerful HTTP router and URL matcher for building Go web servers with |
| 15 | + |
| 16 | +## Want to contribute |
| 17 | +1. Explain the issue that must be fixed or a feature that must to be added. |
| 18 | +2. Fork the repository to your github account. |
| 19 | +3. Make your changes. |
| 20 | +4. Create a pull request from your forked repository to master branch of this repository. |
0 commit comments