How kamvamacanda/encryption_library works
This repository combines a small encryption library with a WebSocket chat server. The server accepts connections, reads JSON chat messages, registers logged-in users, and forwards chat messages to online recipients. The library also provides DES encryption/decryption and key generation, RSA key wrapping, and HMAC creation/verification, but the sampled code does not wire these primitives into chat processing. SenderApp is empty and Receiver only prints a greeting, so neither establishes a messaging workflow.
Main entry points: WebSockets.cs Message dispatch
Components 9
WebSocket messaging
- Chat server
WebSockets.cs - Connection handler
WebSockets.cs - Message dispatch
WebSockets.cs - Online users
WebSockets.cs
Cryptography library
- DES encryption
Cryptography.cs - RSA key wrapping
RSA Encryption.cs - HMAC integrity
Hashing.cs
Other components
- WebSocket client
- Recipient client
Connections 5
- WebSocket client → Chat server: connects and sends
- Chat server → Connection handler: accepts connection
- Connection handler → Message dispatch: passes received JSON
- Message dispatch → Online users: registers or looks up
- Message dispatch → Recipient client: forwards chat JSON