Apprendre
Chaque lettre est décalée d'un nombre fixe de positions dans l'alphabet.
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
Comment le reconnaître
- 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
Erreurs fréquentes
- 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
Résolution étape par étape
Encodez 'HELLO' avec un chiffre de César décalage 3
- H est la 8e lettre. Ajoutez 3 : position 11 = K
- E est la 5e lettre. Ajoutez 3 : position 8 = H
- L est la 12e lettre. Ajoutez 3 : position 15 = O
- L encore : position 15 = O
- O est la 15e lettre. Ajoutez 3 : position 18 = R
Réponse: KHOOR