Decrypting a shift cipher with wrap-around

A shift cipher encrypts with E(x)=(x+k) mod 26E(x) = (x + k) \bmod 26, where A = 0, B = 1, …, Z = 25, and this message used the key k=19k = 19. Decrypting by subtracting 19 is the same as encrypting again with a shift of . The ciphertext letter D has value 3, and 3−193 - 19 reduces modulo 26 to , so D decrypts to the plaintext letter . In the same way, the ciphertext letter W decrypts to the plaintext letter .

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Basics of Cryptography Questions: