Coder Social home page Coder Social logo

cli-chat-tool's Introduction

CLI Chat Tool

CLI Chat Tool is a command-line based chat application that allows users to communicate with each other in real-time using the client-server architecture. It provides a simple and secure way to exchange messages within a specific room.

Features

  • Join a specific room by providing a room ID and username.
  • Exchange messages with other users in the room.
  • Encrypt messages using RSA encryption algorithm.
  • Send and receive public keys for secure communication.

Prerequisites

  • Python 3.x
  • Additional Python libraries: colorama, cryptography,curses

Usage

  1. Start the server by running server.py script:
  2. Connect to the server and join a room by running client.py script:
  3. Replace <room_id> with the desired room ID and <username> with your desired username.
  4. python3 client.py <room_id>
  5. Start exchanging messages with other users in the room.
  6. To send message Press Ctrl+G (Not Enter)
  7. To exit the chat room, a client can simply type exit() as a message.

Note: Make sure to run the client script on different machines or use different terminal windows with different log_file to simulate multiple clients.

Default

  • host = 'localhost'
  • port = 1234
  • Replace the host ip address in client.py and server.py file.

Architecture

The CLI Chat Tool consists of two main components:

  • Server: The server component (server.py) is responsible for accepting incoming connections from clients, managing rooms, and broadcasting messages to all clients in a room.

  • Client: The client component (client.py) allows users to connect to the server, join a specific room, and exchange messages with other users in the same room.

Contributing

Contributions to this project are welcome! Feel free to open issues and submit pull requests to improve the application.

cli-chat-tool's People

Contributors

amitpanwar789 avatar

Watchers

 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.