Skip to main content

TIGER AI secure encrypted socket client powered by pythonaibrain

Project description

pythonaibrain-client

TIGER AI secure encrypted socket client powered by pythonaibrain

A Python-based terminal chat client that uses XOR encryption for secure communication.


Features

  • Secure messaging with XOR cipher encryption
  • Loads sensitive config (encryption key, host, port) from .env
  • Multi-threaded send/receive for real-time chat
  • Cross-platform terminal clear support (cls / clear)
  • Easy to install and run as a CLI command client-server

Project Structure


pythonaibrain-client/
├── pyaibrain/
│   └── client/
│       ├── **init**.py      # Main client code
│       └── .env             # Configuration file for keys & settings
├── pyproject.toml           # Project metadata & dependencies
├── README.md                # This file
└── LICENSE                  # License file


Getting Started

Prerequisites

  • Python 3.8 or higher
  • pip installed

Installation

pip install pythonaibrain-client

Connecting to the Server

To use this client, you need to connect to a running server.

  • Please install the pythonaibrain version 1.1.9 package which contains the server implementation.
  • Start the server using the commands or instructions provided with pythonaibrain.
  • Once the server is running, run this client (client-server) to connect and chat securely.

Usage

Run the client from terminal:

client-server

You will be prompted to enter your name, then the client will connect to the server and start the chat interface.

Also,

from pyaibrain.client import ClientServer

cServer = ClientServer()
cServer.serve()

Commands

  • clear or cls to clear the terminal screen during chat

Encryption Details

Messages are encrypted/decrypted with a simple XOR cipher using the key from .env. Note: XOR is for demonstration and not secure for production use.


Author

Divyanshu Sinha Email: divyanshu.sinha136@gmail.com


License

This project is licensed under the MIT License — see the LICENSE file for details.

✨ Preview

Chat Preview

Chat Preview

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonaibrain_client-1.0.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonaibrain_client-1.0.0-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file pythonaibrain_client-1.0.0.tar.gz.

File metadata

  • Download URL: pythonaibrain_client-1.0.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for pythonaibrain_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9682dfa33c3f0f4957d8ec882d05dacc8e3043c6642731518857dc62fd7bf668
MD5 d2d89190ec7529afca03c492b348d48a
BLAKE2b-256 79feb7f9a55815197c3bc4c77fbb849b37b04de681740c23a34c39ba98d19129

See more details on using hashes here.

File details

Details for the file pythonaibrain_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonaibrain_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7eed1a40f42b8688a5c6eedb0f22278919da173bbb50496f2c708c03d25ad483
MD5 b2582dd70447265157ded0de38adf5ba
BLAKE2b-256 4c9a369606ba501ebc5e9726b081e5d3fa43fe872aa4e6d407a4fb59f02ef2b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page