Git Product home page Git Product logo

rsa_chat's Introduction

@Author: ct95

<How does the program work>
There are 4 files on the code repository. They are Rsa.java ChatServer.java ChatClient.java RsaCrack.java respectively. The Rsa.java is the basic blue print for any object uses RSA cryptosystem. The ChatServer.java and ChatClient.java are the client and server of this chat program. The RsaCrack.java is to crack a key using a brute force algorithm to decrypt an unknown user's ciphertext.

<How to run this program>
(1) open 2 terminals and ssh onto either minus/plus/ampersand (choose one and be consistant with it)
(2) run server in one terminal and run client in the other.
(3) follow the instruction shown on terminal, and you're good to chat.
  [Note: all your messages are RSA encripted, and all the incomoing messages are RSA-decrypted for you already]
(4) if you'd like to crack a certain ciphertext. You need to run RsaCrack.java on another terminal and type in the required informaiton (i.e. the public key (e, c) and the ciphertext), then it will employ brute force algorithm to decrypt the ciphertext for you.

<Details about this program>
(1) The threaded-server runs on local host (i.e. ipv4 = 127.0.0.1).

rsa_chat's People

Contributors

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