Coder Social home page Coder Social logo

simple_chat_app's Introduction

chat_app_with_encryption

It is a simple chat application which uses both, asymmetric and symmetric encryption to function. The main motivation behind the project was that, I wanted to learn more about cryptography and its implementation, so I decided to create this application.

For development python version 3.8.3 had been used. The server and the client generating public and private keys at runtime and exchanging them. Then the server uses the client public key to encrypt a random generated session key and it will be shared with the client. After this process the client will decrypt it with its own private key and uses that secret to encryp/decrypt messages using AES in CFB mode. The server can handle multiple clients connected, and it doesn't logs the messages.

Usage:

The server can be started using one parameter which should be the port number on which the server will listen

  • python3 server.py -p 4444

The client has three parameters, -s server ip, -p server port number, -u username of the user

  • python3 client.py -s 127.0.0.1 -p 4444 -u gr0g101

The server can be terminated by typing 'TERMINATE' on the console. The client can be terminated by typing 'EXIT' on the console.

For improvement I will add digital signature.

simple_chat_app's People

Contributors

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