WEP forms each frame’s RC4 key by combining the shared secret with a 24-bit initialization vector sent in the clear. The IV is meant to vary from frame to frame, changing the keystream; its small size, however, allows repeats that can weaken wireless security.

Multiple Choice

WEP encrypts each frame with a per-frame key that consists of the shared RC4 key plus a 24-bit initialization vector that is different for each frame.

The key idea here is how WEP creates a per-frame encryption key. In WEP, each frame is encrypted using RC4 with a key that combines the shared WEP key (the secret key) with a per-frame 24-bit initialization vector. That IV is included in the frame header in cleartext, and for every new frame a different 24-bit IV is used so the RC4 keystream changes each time. Practically, the per-frame RC4 key is the IV concatenated with the shared WEP key, so you get a unique keystream for each frame. That’s why the statement is true: the per-frame key consists of the shared RC4 key plus a distinct 24-bit IV for each frame.

WEP’s Per-Frame Key: How a 24-Bit IV Was Meant to Protect Wi-Fi

Wired Equivalent Privacy, better known as WEP, was an early attempt to bring data privacy to wireless networks. Its design had a simple goal: make radio traffic harder to read by encrypting each transmitted frame. A key part of that design was a 24-bit initialization vector, or IV, combined with a shared secret key to create the input used by the RC4 stream cipher.

The idea sounds sensible at first. Each frame gets a different IV, so RC4 produces a different stream of encryption bits. But WEP’s small IV, along with several other design flaws, made that protection far weaker than it seemed. Understanding the IV mechanism helps explain both how WEP worked and why it was eventually replaced.

One shared secret, plus a changing value

In WEP, devices on a wireless network share a secret key. That key is stored on the devices and used to protect data sent over the air. Since every frame needs a fresh encryption stream, WEP combines the shared key with a per-frame IV before passing the result to RC4.

In simplified form, the RC4 key for a frame is:

24-bit IV + shared WEP key

The IV is sent in the clear as part of the wireless frame. That may sound odd, but an IV is not meant to be secret. The receiver needs to know it so it can build the same RC4 input and recover the original data. The shared key remains secret; the IV is the changing ingredient.

Imagine that the shared key is the base recipe and the IV is a small note added for each batch. The note changes the result, while the core recipe stays the same. In WEP, this was meant to give each frame a different RC4 keystream, even though all devices used the same shared key.

The IV is often described as different for every frame. That describes the design goal, but it needs an important qualification: WEP did not reliably guarantee a unique IV for every frame. It had only 24 bits, which means there are 2²⁴ possible values—about 16.8 million. On a busy network, those values can run out and repeat. Many WEP devices also used weak or predictable methods to choose IVs, making repeats more likely.

Why does the receiver need the IV?

RC4 is a stream cipher. Rather than encrypting data in fixed blocks, it generates a stream of pseudorandom bits, called a keystream. The sender combines that stream with the frame’s data, usually through an XOR operation, to produce ciphertext.

The receiver generates the same keystream by using the same RC4 key. It then applies XOR again to recover the data. For this to work, both sides need the same inputs: the shared secret key and the frame’s IV. That is why WEP places the IV in the frame header, where a receiver can read it without decrypting the payload first.

The IV doesn’t need to hide. Its job is to help produce a different keystream, not to act as another password. The security of the system still depends on the shared secret key—and on the design making good use of the IV.

That last part is where WEP ran into trouble. A changing value can help only if it changes often enough and is handled carefully. A house key with a new tag on it is still the same house key; if the tag repeats, the lock hasn’t gained much protection.

Repeated IVs create a serious weakness

When the same IV appears again with the same shared WEP key, RC4 receives the same input and generates the same keystream. If two frames use that keystream, an attacker who captures both can compare the ciphertexts. Since stream ciphers combine plaintext and keystream with XOR, comparing two ciphertexts can reveal information about the relationship between the original messages.

The attacker may not immediately read every captured frame. Still, repeated keystreams can provide useful clues, especially when some message content is predictable. Network protocols often contain familiar patterns, such as standard headers or repeated requests. Those known details can help reveal more of the hidden data.

The limited IV size makes repetition a matter of time on a busy network. Think of a hat-check system with only a few numbered tickets: the tickets may be unique at first, but sooner or later the same number comes around again. WEP’s IV space was simply too small for modern levels of wireless traffic, and the protocol did not include a robust system to prevent reuse.

There were other weaknesses, too. Some IV values were especially risky when used with RC4, and attackers could collect large numbers of frames to analyze patterns in the resulting data. The issue wasn’t just that WEP used a small IV. Its RC4 key construction and packet integrity checks also had flaws. Together, these weaknesses made it possible to recover WEP keys from captured wireless traffic under suitable conditions.

Encryption wasn’t the whole story

WEP also used a checksum called the Integrity Check Value, or ICV, to detect accidental changes to a frame. But the ICV was based on CRC-32, which is designed to catch transmission errors, not to provide strong cryptographic integrity. That distinction matters. Encryption can make data hard to read, but it does not automatically stop someone from changing it.

A secure wireless protocol needs to protect confidentiality and integrity. Confidentiality keeps outsiders from reading the data. Integrity helps show that the data has not been altered. WEP’s protections fell short on both fronts, and its use of RC4 with weak key handling made the situation worse.

This is a useful lesson in security design: adding encryption is not enough by itself. The details matter—how keys are formed, how nonces or IVs are chosen, how messages are authenticated, and how devices respond when values repeat. A protocol is only as strong as the way all its pieces work together.

WEP has been retired for good reason

WEP was superseded by Wi-Fi Protected Access, or WPA, and later by WPA2 and WPA3. These newer standards use stronger methods for protecting wireless traffic and handling keys. WPA2, for example, commonly uses AES-based encryption, while WPA3 adds further protections for modern networks.

If a router still offers WEP, it should not be used for a live network. Changing the WEP key often does not fix the underlying design flaws. The safer approach is to configure WPA2 or WPA3, update the router’s firmware, and replace equipment that cannot support current security settings.

Older devices can complicate that change. A printer or handheld device from another era may support only WEP, which can tempt someone to keep an outdated network running. A better solution is usually to replace the device or isolate it from the main network, rather than letting one legacy gadget weaken security for everything else.

WEP remains worth studying because it shows how a small technical detail can shape a system’s security. Its 24-bit IV was combined with a shared secret key to form a per-frame RC4 key, and the IV was sent openly so the receiver could recreate the keystream. That mechanism was intended to make each frame’s encryption distinct. But a short IV space, repeated values, and other design flaws undermined the goal.

The broader point is simple: changing an input for every message can help protect encrypted traffic, but only when the value is large enough, chosen safely, and paired with strong integrity checks. WEP’s approach fell short. Modern wireless standards learned from that failure—and wireless security is stronger for it.