leetcrypt
90491988b8
feat: add interactive 2-user lab environment + fix requirements.txt encoding
...
- lab/setup-lab.sh: automated tmux setup with server + 2 chat clients
Supports --no-tls, --password, --port, --user1/--user2, --teardown
Auto-installs missing pip dependencies, verifies port availability,
waits for server health before connecting clients
- lab/README.md: usage docs and keyboard shortcuts
- requirements.txt: fixed UTF-16 encoding to UTF-8, cleaned pinned versions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-25 21:44:24 -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
95f8a192b5
feat: complete client-server architecture refactoring
...
Server:
- Split into views, routes, helpers, models modules
- Merged /ws/talk and /ws/update into single /ws/chat endpoint
- Replaced polling with push-based broadcast model
- Added username uniqueness validation on connect
- Fixed run_server arguments bug (workers parameter)
- Removed deprecated loop argument from Sanic listeners
- Replaced datetime.utcnow() with timezone-aware datetime.now(timezone.utc)
Client:
- Rewrote client as single-file module
- Migrated from websocket-client to websockets (asyncio)
- Fixed websocket-client conflict with asyncio event loop on Windows
- Added progress indicators for key generation, exchange, connection
- Added animated 3D spinning cube in UI
- Updated RSA key from 512 to 2048 bits
CLI:
- Removed unnecessary asyncio.run() wrapper
- Simplified entry point
2026-01-02 14:42:33 +03:00
mirai
6a044ecaf8
Working on 1.1.22
2023-12-03 16:18:09 +03:00
mirai
316a0e3e1e
Reworked setup.py, now you can run cmd_chat directly. Reworked sanic http webserver to make it work. Update readme, etc...
2023-11-27 14:30:01 +03:00
mirai
ac7476c8a1
Updated requirements.txt
2022-12-02 08:18:47 +03:00
mirai
758171a27c
Updated requirements.txt
...
Updated ws_talk.py
2022-12-02 08:16:47 +03:00
mirai
d4eca4c22f
Updated requirements.txt
2022-12-01 10:40:42 +03:00
mirai
f1f54bc4a5
Updated client/client.py
...
Updated requirements.txt
2022-12-01 10:33:41 +03:00
mirai
b841d1cfdb
Deleted client.py
...
Added client/client.py
Deleted reqs.txt
Added requirements.txt
Updated run_client.sh
Updated run_server.sh
2022-12-01 10:14:14 +03:00