Skip to content

Commit 7cebd0b

Browse files
committed
README file added to the repo.
1 parent a9ccd46 commit 7cebd0b

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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.

des_input.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
key:0010010111
2+
P10:3 5 2 7 4 10 1 9 8 6
3+
P8:6 3 7 4 8 5 10 9
4+
P4:2 4 3 1
5+
IP:2 6 3 1 4 8 5 7
6+
IP-1:4 1 3 5 7 2 8 6
7+
E/P:4 1 2 3 2 3 4 1
8+
S0:1 0 3 2 3 2 1 0 0 2 1 3 3 1 3 2
9+
S1:0 1 2 3 2 0 1 3 3 0 1 0 2 1 0 3

fes.exe

7.59 MB
Binary file not shown.

0 commit comments

Comments
 (0)