liveBook · Manning

WEP

As explained in Hacking Cryptography

WEP is an obsolete wireless-network security standard that used RC4-based encryption and was vulnerable to cryptographic attacks.

WEP is an obsolete Wi-Fi security standard that combines a preshared key with a public initialization vector (IV) to form per-packet RC4 keys. Its RC4 usage lets attackers recover the original Wi-Fi password by sniffing encrypted traffic. section 4.3 section 4.3.2

Each packet exposes a three-byte IV and encrypts data with RC4 using IV || PSK. The recipient reconstructs the same key, but weak IVs trigger biases in RC4’s key-scheduling algorithm. section 4.3.2

A simulated recovery

A Go test encrypts packets with the PSK "helloworld123" and recovers the same key byte by byte. Reducing the message volume from 50,000 to 500 produces incorrect bytes, showing that the statistical attack depends on sufficient traffic.

How Hacking Cryptography covers it

How deep it goes
Traces packet construction, RC4 KSA and PRGA states, FMS equations, Go implementation, and traffic-volume effects.
Examples
Uses weak IV formulas, RC4 state calculations, Go packet-generation code, recovery tests, and successful or failed console output.
What it assumes
Assumes familiarity with stream-cipher XOR and RC4 while explaining WEP packet construction and attack mechanics concretely.
What you can do after
Diagnose WEP exposure by relating public IVs, captured keystream bytes, RC4 biases, and recovered preshared-key bytes.
How it connects
Connects WEP with RC4, stream ciphers, initialization vectors, preshared keys, known plaintext, and the FMS attack.

Also explained in

Compare how 2 books explain WEP →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Hacking Cryptography. The section links point to the parts of the book it draws on.