| 2026-10-01 | Secure WebSocket Test | | Exercising the secure websocket client against the server. |
| 2025-09-04 | SHA-256 Proof of Work | | This document implements a complete SHA-256 based proof-of-work system in the browser. The system asks clients to find a nonce such that when combined with a challenge string and hashed with SHA-256, the result has a spe |
| 2025-08-29 | WebCrypto | | In recent months WebCrypto has gained X25519 asymmetric functions, and so has node 24+. |
| 2025-08-28 | Encodings | | The question of which encoding to use and when is a surprisingly complex topic in the context of writing a secure socket protocol. In particular, there is an asymmetry with data that originates as uint8array and that whi |
| 2025-08-28 | NaCl | | A keypair and Diffie-Hellman walkthrough using tweetnacl instead of the WebCrypto API. |
| 2025-08-27 | Secure WebSocket | | A secure websocket encrypts all messages such that the server cannot read them. The server in this scenario verifies clients and routes messages between connected clients. |
| 2025-08-27 | Simple WebSocket | | A websocket is a browser-provided class that takes an endpoint string and provides a persistent object with 4 events (open, message, close, error) and 2 methods (send, close). In this example we wrap the browser websocke |
| 2025-08-27 | WebSocket Simple | exercises | A promise-based websocket facade, simple but with rough edges around message structure and asynchronous construction. |
| 2025-05-04 | Callback-based WebSocket | callback-based | A websocket built from callbacks, with encryption on top of the crypto primitives. |
| 2025-05-04 | FSM-based WebSocket | fsm-based | Modeling the websocket handshake and message flow as a finite state machine. |
| 2025-05-04 | Protocol-based WebSocket Auth | protocol-based | A websocket auth exercise expressed as an explicit message protocol. |
| 2025-05-04 | Simpatico Socket | stree-based | The stree-based implementation of the secure socket protocol. |
| 2025-05-04 | WebSocket Basics | exercises | Exercising the basic WebSocket API. |