Aprender
Cada letra se desplaza un número fijo de posiciones en el alfabeto.
The Caesar cipher shifts each letter by a fixed number of positions. If the shift is 3, A becomes D, B becomes E, and so on. At the end of the alphabet, it wraps around: X→A, Y→B, Z→C (with shift 3). Named after Julius Caesar who reportedly used a shift of 3 for military messages.
Shifted letter = (Original position + Shift) mod 26. With shift=3: A→D, B→E, C→F, ..., X→A, Y→B, Z→C
- Shift 1: CAT → DBU
- Shift 3: HELLO → KHOOR
- Shift 5: APPLE → FUUQJ
Cómo reconocerlo
- All letters shifted by the same amount
- Key shows consistent pattern (A→D, B→E means shift 3)
- Wraps around at Z back to A
Errores comunes
- Forgetting to wrap around (Y+3 should be B, not beyond Z)
- Shifting in the wrong direction for decoding
- Not identifying the shift value from given examples
Resolución paso a paso
Codifica 'HELLO' con cifrado César desplazamiento 3
- H es la 8.ª letra. Suma 3: posición 11 = K
- E es la 5.ª letra. Suma 3: posición 8 = H
- L es la 12.ª letra. Suma 3: posición 15 = O
- L de nuevo: posición 15 = O
- O es la 15.ª letra. Suma 3: posición 18 = R
Respuesta: KHOOR