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.

