Commit Graph

10 Commits

Author SHA1 Message Date
leetcrypt
82a04f3e12 feat(coven): SRP/Fernet crypto parity + multi-user coven foundation ⛧
Begin the coven evolution of cmd-chat (see docs/spec-collaborative-sandbox.md):
a Rust/ratatui client for the unchanged Python Sanic server, plus the
multi-user + zero-knowledge groundwork.

P0 — crypto parity (the spec's #1 risk), proven three ways:
- Hand-rolled SRP-6a (NG_2048, SHA-256, rfc5054 padding) matching pysrp
  byte-for-byte, incl. the fixed b"chat" SRP identity and minimal-vs-256B
  width quirks. Golden-vector unit test + offline selftest.
- Live handshake against the running server (H_AMK verified).
- Cross-language E2E: Python client decrypts a Rust-encrypted Fernet message.

P2 — multi-user coven (server):
- CMD_CHAT_MAX_USERS capacity cap (default 4, infra-for-more).
- Authoritative roster + user_joined broadcasts.
- Free the slot/username on ws disconnect (was held until 1h stale sweep).

Also: fix requirements.txt (was UTF-16, unparseable by pip).

coven/ : Rust crate (crypto.rs proven; main.rs spike CLI: selftest/handshake/srpm)
docs/  : full feature spec for the 6 requested features.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-05-30 11:47:25 -07:00
mirai
5cbe355660 feat: add SRP authentication, improve security
- Replace RSA key exchange with SRP (Secure Remote Password)
- Password never transmitted over network
- Add unit tests for endpoints
- Fix datetime.UTC compatibility for Python < 3.11
- Fix logger.exception usage
- Update README with new auth flow diagram
2026-01-02 23:09:00 +03:00
mirai
b99ccbc2f9 Update README & pypi 2023-03-08 19:38:28 +03:00
mirai
bad818c7e9 Create pypi package 2023-03-08 19:10:49 +03:00
mirai
0f066d367f Code refactoring. Add config for customize colors, add services, fixed bugs & glitches 2023-03-08 18:30:26 +03:00
mirai
49eba7a61a Update .gitignore 2022-12-05 18:33:05 +03:00
mirai
1663ccdb30 Updated .gitignore 2022-12-01 10:29:11 +03:00
mirai
88b4b95b02 Updated .gitignore
Updated client.py
Deleted preview.png
Deleted server.py
Added server/server.py
2022-12-01 10:13:43 +03:00
mirai
de24ac3b11 Crypting: Done crypting pipeline and add some crypting code 2022-07-02 08:30:37 +03:00
mirai
82e264542f init 2022-07-02 05:16:23 +03:00