Code Monkey home page Code Monkey logo

securetransfer's Introduction

Secure-File-Transfer

The Assignment

In this assignment, we implemented authentication and sending of encrypted data over a network.

How To Run

Running the programs is simple. First clone the repository and go to the folder "src" on your command prompt or terminal.

Next, compile the relevant java files. For example if you want to run CP1,

javac ServerCP1.java
javac ClientCP1.java

Finally, run the Server program on the machine that will be receiving the files, and run the Client program on the machine sending the file.

java ServerCP1
java ClientCP1 <ip-address-of-server> <path-to-file>

Here is an example of how we run our program. On the server side:

javac ServerCP2.java
java ServerCP2

And on the client side:

javac ClientCP2.java
java ClientCP2.java 10.12.90.175 rr.txt

Specifications

Our program has two parts. Authentication (AP) and Encrypted Data Transfer (CP1 and CP2).

Here are the specs of AP:

alt text

Here are the specs of CP1:

alt text

Here are the specs of CP2:

alt text

Why Nonce?

If you have seen the specs of our program, you might have noticed that we used a nonce during authentication. This is to prevent the possibility of a playback attack. With the nonce, an attacker can no longer record the message encrypted using the server's private key, and send it to the client at a later time, pretending to be the correct server.

Sending Speed

We tested both CP1 and CP2 over 350 text files of varying sizes and plot the file transfer time to compare the performance of the two different encryption methods.

Here are the results.

alt text

For the high quality and interactive version, visit http://rpubs.com/nosyarlin/Programming_Assignment2

Note: The programs were written and tested on a Mac machine.

securetransfer's People

Contributors

nosyarlin avatar

Watchers

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