Sec-WebSocket-Key and Sec-WebSocket-Accept

The WebSocket handshake headers: the client sends a random key, and the server proves it understood by returning a SHA-1 hash of that key joined to a fixed magic string.

In more detail

The result is sent as Base64. It stops ordinary HTTP servers or caches from being mistaken for WebSocket servers, but it is not an authentication mechanism.

Related terms

Taught in

References