Publicité

Chiffre à Décalage Variable

Chaque lettre est décalée selon son numéro de position (1re +1, 2e +2, etc.).

Apprendre

Chaque lettre est décalée selon son numéro de position (1re +1, 2e +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

Comment le reconnaître

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

Erreurs fréquentes

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

Résolution étape par étape

Encodez 'CAT' avec décalage variable (position 1 = +1, position 2 = +2, etc.)

  1. C est en position 1. Décalez +1 : C (3e lettre) + 1 = D
  2. A est en position 2. Décalez +2 : A (1re lettre) + 2 = C
  3. T est en position 3. Décalez +3 : T (20e lettre) + 3 = W

Réponse: DCW

Conseils de pratique

Codage et Décodage

Publicité