WIP: Fix: Room-based encryption for message sharing between clients #12
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/room-based-encryption"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Users in the same room couldn't read each other's messages. Each client was receiving a unique per-client encryption key, which meant messages encrypted by one client couldn't be decrypted by other clients in the same room.
Solution
Changed the encryption key strategy from per-client keys to room-based keys:
Changes
Server (\cmd_chat/server/server.py)
Client (\cmd_chat/client/)
oom_id\ parameter in POST data
Renderers
Testing
Tested with two clients in the same room:
Breaking Changes
Important: Users must restart the server and reconnect clients to get the new room keys. Old messages encrypted with per-client keys will be skipped gracefully (no crash).
Related
Pull request closed