{"id":48571550,"url":"https://github.com/diorwave/cmd-chat","last_synced_at":"2026-04-08T14:33:46.901Z","repository":{"id":333091871,"uuid":"1129024589","full_name":"diorwave/cmd-chat","owner":"diorwave","description":"My ISP tried to block this repo. 🤐 A truly peer-to-peer, end-to-end encrypted CLI chat that leaves NO logs. Perfect for... sensitive discussions. 🔥 Get it before it gets taken down","archived":false,"fork":false,"pushed_at":"2026-01-17T07:54:40.000Z","size":3185,"stargazers_count":48,"open_issues_count":1,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-06T17:52:02.114Z","etag":null,"topics":["end-to-end-encryption","p2p","python","python-based","ram-only","real-time","secure-authentication"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diorwave.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-06T13:55:17.000Z","updated_at":"2026-02-06T14:32:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/diorwave/cmd-chat","commit_stats":null,"previous_names":["diorwave/cmd-chat"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/diorwave/cmd-chat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diorwave%2Fcmd-chat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diorwave%2Fcmd-chat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diorwave%2Fcmd-chat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diorwave%2Fcmd-chat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diorwave","download_url":"https://codeload.github.com/diorwave/cmd-chat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diorwave%2Fcmd-chat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31559926,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["end-to-end-encryption","p2p","python","python-based","ram-only","real-time","secure-authentication"],"created_at":"2026-04-08T14:33:46.754Z","updated_at":"2026-04-08T14:33:46.860Z","avatar_url":"https://github.com/diorwave.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\n# 🤐 CMD-CHAT\n\n### encrypted terminal chat. no servers. no logs. ram only.\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n[![Python 3.8+](https://img.shields.io/badge/python-3.8+-blue.svg)](https://www.python.org/downloads/)\n\n\u003c/div\u003e\n\n---\n\npeer-to-peer encrypted chat that runs in your terminal. you host, you control. close the window — everything's gone.\n\n## why\n\nevery \"secure\" messenger still stores metadata somewhere. this doesn't. it's just two terminals talking over an encrypted tunnel. nothing written to disk, ever.\n\n## how it works\n\n```\n┌──────────────────────────────────────────────────────────────────┐\n│                        SRP AUTHENTICATION                        │\n├──────────────────────────────────────────────────────────────────┤\n│                                                                  │\n│  CLIENT                                         SERVER           │\n│    │                                              │              │\n│    │─────── POST /srp/init {username, A} ───────► │              │\n│    │         (A = client public ephemeral)        │              │\n│    │                                              │              │\n│    │◄──── {user_id, B, salt, room_salt} ───────── │              │\n│    │         (B = server public ephemeral)        │              │\n│    │         (room_salt = E2E key derivation)     │              │\n│    │                                              │              │\n│    │  [client derives room_key via HKDF:          │              │\n│    │   room_key = HKDF(password, room_salt)]      │              │\n│    │                                              │              │\n│    │  [both sides compute SRP session key         │              │\n│    │   using password + ephemeral values]         │              │\n│    │                                              │              │\n│    │─────── POST /srp/verify {user_id, M} ──────► │              │\n│    │         (M = client proof)                   │              │\n│    │                                              │              │\n│    │◄────────── {H_AMK, session_key} ──────────── │              │\n│    │         (H_AMK = server proof)               │              │\n│    │                                              │              │\n│    │  [password never transmitted]                │              │\n│    │  [MITM can't derive session key]             │              │\n│    │                                              │              │\n├──────────────────────────────────────────────────────────────────┤\n│                      E2E ENCRYPTED CHAT                          │\n├──────────────────────────────────────────────────────────────────┤\n│    │                                              │              │\n│    │═══════ WebSocket /ws/chat?user_id ═════════► │              │\n│    │         (authenticated session)              │              │\n│    │                                              │              │\n│    │                                              │              │\n│  ┌─┴─┐                                        ┌──┴──┐            │\n│  │ C │──── encrypt(msg, room_key) ───────────►│  S  │            │\n│  │ L │                                        │  E  │            │\n│  │ I │◄─── ciphertext (broadcast) ────────────│  R  │            │\n│  │ E │                                        │  V  │            │\n│  │ N │     decrypt(ciphertext, room_key)      │  E  │            │\n│  │ T │                                        │  R  │            │\n│  └─┬─┘                                        └──┬──┘            │\n│    │                                              │              │\n│    │  [server stores ONLY ciphertext]             │              │\n│    │  [server CANNOT read messages]               │              │\n│    │  [all clients with same password             │              │\n│    │   derive identical room_key]                 │              │\n│    │                                              │              │\n│    │  Encryption: Fernet (AES-128-CBC + HMAC)     │              │\n│    │  Key derivation: HKDF-SHA256                 │              │\n│    │                                              │              │\n│    │  [on disconnect: keys wiped from RAM]        │              │\n│    │                                              │              │\n└──────────────────────────────────────────────────────────────────┘\n\n┌──────────────────────────────────────────────────────────────────┐\n│                      KEY HIERARCHY                               │\n├──────────────────────────────────────────────────────────────────┤\n│                                                                  │\n│  password ──┬──► SRP ──► session_key (per-user, auth only)       │\n│             │                                                    │\n│             └──► HKDF(password, room_salt) ──► room_key (shared) │\n│                                                                  │\n│  room_salt: generated once at server start                       │\n│  room_key:  deterministic, same for all clients with same pwd    │\n│                                                                  │\n└──────────────────────────────────────────────────────────────────┘\n```\n\n**SRP (Secure Remote Password)** — password is never sent over the network. both sides prove they know it via zero-knowledge proof, then derive identical session keys.\n\n## install\n\n```bash\npython -m venv venv \u0026\u0026 source venv/bin/activate \u0026\u0026 pip install -r requirements.txt\n```\n\nwindows:\n\n```bash\npython -m venv venv ; .\\venv\\Scripts\\activate ; pip install -r requirements.txt\n```\n\n## usage\n\nstart server:\n\n```bash\npython cmd_chat.py serve 0.0.0.0 3000 --password mysecret\n```\n\nconnect:\n\n```bash\npython cmd_chat.py connect SERVER_IP 3000 username mysecret\n```\n\n![Example](example.gif)\n\n## features\n\n- **ram only** — nothing touches disk\n- **rsa + aes** — key exchange + symmetric encryption\n- **no central server** — direct p2p connection\n- **srp auth** — password never sent over network\n\n## license\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiorwave%2Fcmd-chat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiorwave%2Fcmd-chat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiorwave%2Fcmd-chat/lists"}