Aprender
Cada letra se desplaza según su número de posición (1.ª +1, 2.ª +2, etc.).
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
Cómo reconocerlo
- Different shifts for each position
- First letter always shifts by 1
- Pattern: 1st +1, 2nd +2, 3rd +3...
Errores comunes
- Using same shift for all letters
- Forgetting to wrap around Z back to A
- Miscounting positions (starting from 0 vs 1)
Resolución paso a paso
Codifica 'CAT' con desplazamiento variable (posición 1 = +1, posición 2 = +2, etc.)
- C está en posición 1. Desplaza +1: C (3.ª letra) + 1 = D
- A está en posición 2. Desplaza +2: A (1.ª letra) + 2 = C
- T está en posición 3. Desplaza +3: T (20.ª letra) + 3 = W
Respuesta: DCW