Using the shift cipher with key = 12, what will be the result after decrypting the message "TQXXA"?
Using the shift cipher with key = 12, what will be the result after decrypting the message "TQXXA"? Correct Answer HELLO
The correct answer is option 1.
Concept:
In a shift cipher, each letter in the message is replaced by a letter that is a specified number of places farther down the alphabet. This number will be referred to as the encryption key. It's just the shift length that we're utilizing.
A given plaintext is encrypted into ciphertext by shifting each letter of the given plaintext by n positions.
The numbers given to the 26 letters of the alphabet are as follows:
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z |
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 |
The encryption process is (the x here represents a letter from plaintext): x+n (mod 26)
The decryption process is (the x here represents a letter from ciphertext): x-n (mod 26)
The given data,
shift cipher with key N = 12
ciphertext = "TQXXA"
The plain text of the letter "T" = 19-12(mod 26)= 7=H
The plain text of the letter "Q" = 16-12(mod 26)= 4=E
The plain text of the letter "X" = 23-12(mod 26)=11=L
The plain text of the letter "X" = 23-12(mod 26)=11=L
The plain text of the letter "A" = 0-12(mod 26)= 12=O
Hence the correct answer is HELLO.