Skip to content

Peer to peer system which provides a SSH terminal with AES encryption for secure data transfer while demonstrating improved computational speed by using P2P data transfer

Notifications You must be signed in to change notification settings

PhalakshaCG/Jar2Jar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jar2Jar

A peer to peer network emulator

How to use the API in your own project

Step 1

Copy the J2J package from src/sample to your project. Import the package into the appropiate files

import J2J

Step 2

Create a new object of type p2pNode. Constructor takes port number and IP address

p2pNode instance = new p2pNode(6066, 192.168.0.1); //Replace 192.168.0.1 with the IP address of your destination computer

Step 3

Call the connect() member function

instance.connect();

Step 4

Call the connect() member function on both computers to connect

instance.connect()

Step 5

To send a message to the other computer, use sendMessage(String). To receive a message, call fetchMessage()

instance.sendMessage("Hello there");

message = instance.fetchMessage();

Step 6

Call instance.disconnet() on both computers to drop off the connection

If developing an app, place all these functions inside threads to retain GUI functionality

About

Peer to peer system which provides a SSH terminal with AES encryption for secure data transfer while demonstrating improved computational speed by using P2P data transfer

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages