RC2 explained in plain terms means understanding the cipher that was a trade secret for nine years, a design from Ron Rivest that shipped in millions of copies of Lotus Notes before anyone outside the company had seen it. The central question is how a cipher can be both secret and everywhere, and the answer is that RC2 was sold, not published, and it worked well enough that nobody asked to see inside.
RC2 is a block cipher designed by Ron Rivest in 1987 for Lotus Development, and kept as a trade secret until 1996. It encrypts 64-bit blocks with a variable-length key, runs for 16 rounds, and it is built as a Feistel network, the structure that splits the block in half and mixes one half into the other, round after round.
This article makes the case for RC2, explains what it is, how it works, and where its ideas still earn their keep.
Key takeaways
- RC2 is a block cipher designed by Ron Rivest in 1987.
- It encrypts 64-bit blocks with a variable-length key.
- It was a Lotus trade secret until an anonymous posting in 1996.
- It was published as an informational RFC in 1998.
- It shipped in Lotus Notes and in S/MIME email software.
What RC2 is
RC2 is a cipher that encrypts data in 64-bit blocks using a Feistel network, passing the block through sixteen rounds of mixing. Each round takes half the block, transforms it with a substitution table and a rotation, and mixes the result into the other half, and the halves swap places before the next round begins.
Its signature feature is the variable-length key. RC2 accepts keys from one byte to 128 bytes long, which made it flexible for the export rules of its era, and that flexibility is why Lotus chose it, because one cipher could serve customers under different regulations without a redesign.
The design was a reaction to the needs of business software. Lotus Notes needed encryption that ran fast on office computers, worked with different key lengths for different markets, and stayed out of public view, so Rivest built RC2 as a practical cipher for a product, not as a paper for a conference.
It became public in an unusual way. In 1996, someone posted the RC2 source code anonymously to the internet, and Rivest confirmed that the posting matched his design, which meant the cipher the world had been using blind for nine years could finally be studied in the open.
Its most famous property is the name. RC stands for Rivest Cipher, though Rivest has joked it could also mean Ron’s Code, and the name has stuck through three decades of study, which is a reminder that cryptographers still enjoy a name with a story behind it.
Our guide to Blowfish explains another fast Feistel cipher from the same era, and our guide to CAST5 explains a cipher built for email security.
How RC2 works
Everything starts with the key schedule, which expands the variable-length key into the subkeys each round needs. The key is stretched through a series of operations that produce a different subkey for every round, and the schedule is designed so that the subkeys look random even when the master key is short, which stops an attacker from working backwards from the subkeys to the key.
Each round begins with the mash step, which takes one half of the block and transforms it. The half passes through a substitution table built from the digits of pi, then the result is rotated and mixed, and the output is added into the other half, which is how the confusion spreads from one half to the other.
The substitution table is what makes the round work as a whole. RC2 uses a 256-entry table derived from the digits of pi, which means its values look random but are fixed and public, and because every byte of the half passes through the table, a small change in the input spreads quickly through the whole block.
The rotation step spreads the effect further. After substitution, the words are rotated by amounts that depend on the round number, so that bits changed by one operation move to positions fed by different operations in the next round, and because the rotation is applied in every round, a single changed bit spreads across the whole block within a few rounds.
The key addition step mixes the subkey into the round. The half is added to the round subkey before substitution, which means the key influences the data in every round, and because the subkeys change from round to round, the cipher’s behaviour evolves as the rounds progress rather than repeating itself.
Decryption runs the same rounds in reverse, starting with the final subkey and working backwards through the rounds. The receiver applies the inverse of each step in the opposite order, and the plaintext comes back out, which means the same design encrypts and decrypts, and that symmetry is the great advantage of the Feistel structure.

Comparing RC2 with other software ciphers
RC2 is one of several ciphers built for business software, and each was built with a different emphasis. DES is the standard Feistel cipher with a fixed 56-bit key, Blowfish is a fast Feistel cipher with a heavy key schedule, and RC2 is the flexible one that took any key length, while each approach trades something for something else.
The table below sets out the main contrasts between the leading approaches.
| Aspect | RC2 | DES | Blowfish |
|---|---|---|---|
| Block size | 64 bits | 64 bits | 64 bits |
| Key size | 8 to 1024 bits | 56 bits | 32 to 448 bits |
| Rounds | 16 | 16 | 16 |
| Key schedule | Variable length | Fixed expansion | Expensive setup |
| Best for | Historical interest | Legacy systems | General software |
The practical result is that RC2 is the right choice for historical interest, DES suits legacy systems that still run it, and Blowfish fits general software instead.
Where RC2 is used
Research uses it as a case study in secret design. Cryptographers still cite RC2 when they discuss what happens when a cipher is kept secret, because it is the clearest example of a widely used design that nobody could review, and that lesson shapes how new ciphers are judged today.
Teaching uses it to show how export rules shaped cryptography. RC2 is clean enough to explain in a lecture and well documented enough to implement in an afternoon, which makes it a favourite example in courses that cover the politics of encryption and the design ideas that shaped it.
Benchmarks use it to measure simple designs. When someone builds a new library or a new piece of hardware, RC2 is one of the designs they test, because its sixteen rounds exercise different parts of a processor than heavier ciphers do, and a platform that runs RC2 well is likely to run most ciphers well.
Legacy systems use it where Lotus Notes once ran. A small number of older products and libraries include RC2 support because it was the cipher of a major business platform, and those implementations keep running in the background of systems that were built around that era, even though nobody chooses RC2 for a new design today.
Standards history uses it to mark the trade-secret era. RC2 was part of the time when companies kept ciphers secret and governments limited key lengths, and it represents the commercial path that era explored, which means historians of the field return to it whenever they ask what business cryptography might have looked like.
Strengths and limits
The greatest strength of RC2 is its flexibility. A cipher that accepts any key length from one byte to 128 bytes can serve many markets with one design, and that flexibility is real, measured in the products that shipped it and confirmed by the designers’ own analysis of the key schedule.
It is also a strength that the design is simple to implement. A cipher built from a table, rotations, and additions is easy to code, easy to analyse, and easy to test, and that simplicity is worth more than cleverness in a field where hidden complexity usually means hidden flaws.
The limits are real, though, and the biggest is the 64-bit block. Short blocks mean that after enough data is encrypted with one key, patterns can start to leak, so RC2 suits legacy systems and short sessions, and a system that moves large volumes should choose a cipher with a 128-bit block instead.
RC2 checklist
- Use RC2 for study and history, not for new systems.
- Remember it accepts keys from one byte to 128 bytes.
- Study its rounds to understand variable-key design.
- Compare it with Blowfish to see the key-schedule trade-off.
- Note its 64-bit block when planning data volumes.
- Test against published test vectors before trusting any implementation.
- Keep keys random and protect them as carefully as with any cipher.
- Use a proper mode of operation, never raw block encryption.
- Choose AES for any system that needs real protection today.
Frequently asked questions
What is RC2 in simple terms?
It is a block cipher from Ron Rivest that encrypts 64-bit blocks with a key of almost any length, built as a Feistel network, and kept secret by Lotus for nine years.
Why was RC2 kept secret?
Because Lotus treated it as a trade secret, and in that era companies routinely kept their ciphers private, which meant the design could not be publicly reviewed until it leaked.
How did RC2 become public?
Someone posted its source code anonymously in 1996, Rivest confirmed it was genuine, and it was later published as an informational RFC in 1998.
Is RC2 still secure?
No practical attack breaks the full 16-round cipher with a long key, but its 64-bit block is short by modern standards, so it is studied as history rather than used for new systems.
What does RC stand for?
Rivest Cipher, though Rivest has joked it could also mean Ron’s Code, and both readings have stuck in the folklore of the field.
When should I use RC2?
When you study secret cipher design, when you research the export-control era, or when you want a cipher with a story no textbook can resist.
The bottom line
RC2 explained in one line is this: the cipher that hid in plain sight, a flexible Feistel design from Rivest that shipped everywhere before anyone was allowed to look inside.
It is proof that secrecy is not security, and the reason it still matters is that every cipher designed since has been published openly, partly because of the lesson RC2 taught.
This article is general information about how RC2 works, not advice about choosing encryption for a particular device or system.







