AES, RC5 and Blowfish are ciphers. CBC, ECB and GCM are modes. A name like aes-256-cbc tells you both, plus the key size. Pick any of the 174 names on this site and see what it means.
A block cipher like AES, RC5 or Blowfish can do exactly one thing: turn one block of data (16 bytes for AES, 8 bytes for RC5 and Blowfish) into another block, using a key. Real messages are longer than one block. The mode of operation decides how the blocks of a longer message are processed: each on its own (ECB), chained together (CBC), or by encrypting a counter (CTR, GCM).
So "CBC or RC5?" is not a choice. You always pick both: a cipher and a mode. rc5-cbc is RC5 in CBC mode, aes-256-cbc is AES in CBC mode. Change only the mode and you get a different result from the same cipher and key; change only the cipher and the mode works the same way.
256Key length128, 192 or 256 bit. Missing when the cipher has one default size.
cbcModeECB, CBC, CFB, OFB, CTR, GCM, XTS … Missing on stream ciphers and short names.
See it
Same cipher, same key, different mode
Each square below is one 16-byte block, and the color is made from the first three bytes. The left picture is the plain text. Both others are encrypted with AES-128 and the secret my secret, computed by the same code as the tools on this site. Only the mode differs.
Plain picture192 blocks of 16 bytes, two colorsaes-128-ecbSame block in, same block out: the heart is still thereaes-128-cbcEvery block depends on the one before: noise
That is the whole problem with ECB: anyone can see which blocks are equal without knowing the key.
Try it yourself
One text in five modes
The quick brown fox jumps over the lazy dog (43 bytes) encrypted with AES-128 and the secret my secret, shown as hex, one block per line. The tools on this site use an IV of zero bytes, like PHP's openssl_encrypt without IV. That makes some modes start the same way.
Every block is encrypted on its own. The same 16 bytes of plain text always give the same 16 bytes of ciphertext, so patterns stay visible (see the picture above). Only for single blocks, such as wrapping one key.
Each plain text block is XORed with the previous ciphertext block before it is encrypted; the first one with the IV. The most common mode in older code. Needs a random IV per message, and without a MAC it is open to padding oracle attacks.
Turns the block cipher into a stream cipher: it encrypts the previous ciphertext and XORs the result onto the plain text. CFB uses a whole block per step, CFB8 one byte, CFB1 one bit (8 or 128 times slower).
Encrypts a counter (nonce + 0, 1, 2 …) and XORs it onto the text. Fast and parallel, no padding. The basis of GCM. A nonce must never repeat under the same key.
CTR-style encryption plus an authentication tag that detects any change to the ciphertext. GCM is what TLS, SSH and most libraries use today. This tool shows an empty result for them, because PHP needs the tag, which the old site never passed.
XTS XEX-based tweaked codebook with ciphertext stealing
Recommended
Made for disk encryption (BitLocker, FileVault, LUKS). Two keys, so aes-256-xts needs 64 bytes. Each disk sector gets its own tweak. Needs at least 16 bytes of input.
OpenSSL accepts short names. They give exactly the same result as the long form. Two traps: des-ede3 is ECB, while des3 is CBC, and the -hmac- names only encrypt when you call them like this.
The number is the key length in bits: 128 bit = 16 bytes, 256 bit = 32 bytes. AES-128 is already far beyond brute force; AES-256 adds a margin, for example against future quantum computers, and costs about 40 % more time. Numbers like 40 or 64 (rc2-40-cbc, rc4-40) are old export versions that were weakened on purpose.
On this site, your secret becomes the key directly: shorter secrets are padded with zero bytes, longer ones are cut. So a 9-character secret in AES-256 is a 9-byte key with 23 zero bytes, not a strong 256-bit key. Real software derives the key from a password with a slow function like PBKDF2 or Argon2.
FAQ
Frequently asked questions
What is the difference between CBC and RC5?
They are different kinds of things. RC5 is a cipher: the algorithm that scrambles one block with a key. CBC is a mode: the rule for how a cipher handles a message that is longer than one block. That is why a name like rc5-cbc contains both.
What does AES-256-CBC mean?
AES is the cipher, 256 is the key length in bits (32 bytes), CBC is the mode, Cipher Block Chaining. Most cipher names follow this pattern: family, key size, mode.
Is aes256 the same as aes-256-cbc?
Yes. aes256 is OpenSSL's short name for aes-256-cbc. Both give exactly the same result. The same goes for bf (bf-cbc), des3 (des-ede3-cbc) and rc5 (rc5-cbc).
What is the difference between ECB and CBC?
ECB encrypts every block on its own, so identical blocks give identical ciphertext and patterns stay visible. CBC mixes each block with the previous ciphertext and starts with an IV, so the output looks random.
Should I use CBC or GCM?
GCM for anything new. It encrypts and adds a tag that detects tampering. CBC only hides the content and needs a separate MAC to be safe.
Why do some names have no mode?
RC4 and ChaCha20 are stream ciphers. They produce a keystream directly and need no mode. Names without a mode like aes256 or bf are short names that default to CBC.
Which cipher should I use?
AES-256-GCM or ChaCha20-Poly1305 with a random nonce per message. Everything else on this list is for compatibility with existing data.