Pubblicità

Cifrario a Spostamento Variabile

Ogni lettera viene spostata del suo numero di posizione (1ª +1, 2ª +2, ecc.).

Impara

Ogni lettera viene spostata del suo numero di posizione (1ª +1, 2ª +2, ecc.).

Unlike the Caesar cipher where all letters shift by the same amount, the variable shift cipher uses position-dependent shifting. The first letter shifts by 1, the second by 2, and so on. This makes the cipher harder to break since the same letter can encode differently based on its position.

Letter at position N shifts forward by N positions. Position 1: +1, Position 2: +2, Position 3: +3, etc.

  • CAT -> D(C+1) C(A+2) W(T+3) = DCW
  • HELLO -> I(H+1) G(E+2) O(L+3) P(L+4) T(O+5) = IGOPT

Come riconoscerlo

  • Different shifts for each position
  • First letter always shifts by 1
  • Pattern: 1st +1, 2nd +2, 3rd +3...

Errori comuni

  • Using same shift for all letters
  • Forgetting to wrap around Z back to A
  • Miscounting positions (starting from 0 vs 1)

Soluzione passo per passo

Codifica 'CAT' con spostamento variabile (posizione 1 = +1, posizione 2 = +2, ecc.)

  1. C è alla posizione 1. Sposta +1: C (3a lettera) + 1 = D
  2. A è alla posizione 2. Sposta +2: A (1a lettera) + 2 = C
  3. T è alla posizione 3. Sposta +3: T (20a lettera) + 3 = W

Risposta: DCW

Indicazioni per la pratica

Codifica e Decodifica

Pubblicità