magic number

A fixed value, placed at the start of a file or message or built into a protocol, that lets a reader recognise the format.

In more detail

A parser checks it first and rejects data that does not start with it. The WebSocket handshake uses a fixed magic string when computing its accept header.

Related terms

Taught in

References