Pubblicità

Cifrario di Cesare

Ogni lettera viene spostata di un numero fisso di posizioni nell'alfabeto.

Impara

Ogni lettera viene spostata di un numero fisso di posizioni nell'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

Come riconoscerlo

  • 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

Errori comuni

  • 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

Soluzione passo per passo

Codifica 'HELLO' con cifrario di Cesare spostamento 3

  1. H è l'8a lettera. Aggiungi 3: posizione 11 = K
  2. E è la 5a lettera. Aggiungi 3: posizione 8 = H
  3. L è la 12a lettera. Aggiungi 3: posizione 15 = O
  4. L di nuovo: posizione 15 = O
  5. O è la 15a lettera. Aggiungi 3: posizione 18 = R

Risposta: KHOOR

Indicazioni per la pratica

Codifica e Decodifica

Pubblicità