1. Quagmire 2 Cipher encoder
Text : ABCD efghi
Keyword : quagmire
Indicator Keyword : crankt
Indicator Start Position : aSolution:Quagmire 2 cipher is a periodic substitution cipher that uses Standard Alphabet (A-Z) for plaintext and Keyed Alphabet for ciphertext.
1. Build the Keyed Alphabet :For Keyword quagmire, remove any duplicate letters and append the remaining letters of A–Z in order
Plain Key Alphabet = abcdefghijklmnopqrstuvwxyz
Cipher Key Alphabet = quagmirebcdfhjklnopstvwxyz
2. Build the Cipher Rows :Indicator Keyword = crankt
Indicator Start Position = a
Each letter in the indicator key, shifts cipher key alphabet, so that indicator letter aligns under a
| | 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 | 26 |
| 0 | 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 |
| c | 1 | c | d | f | h | j | k | l | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b |
| r | 2 | r | e | b | c | d | f | h | j | k | l | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i |
| a | 3 | a | g | m | i | r | e | b | c | d | f | h | j | k | l | n | o | p | s | t | v | w | x | y | z | q | u |
| n | 4 | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b | c | d | f | h | j | k | l |
| k | 5 | k | l | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b | c | d | f | h | j |
| t | 6 | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b | c | d | f | h | j | k | l | n | o | p | s |
3. Encrypt the Plaintext :Repeat Indicator Keyword crankt under Plaintext. For each letter, find its index in the Plain Key Alphabet (Row-0) and take the letter at that same position from the active Indicator Row (1 to 6)
| Plaintext | a (0,1) | b (0,2) | c (0,3) | d (0,4) | e (0,5) | f (0,6) | g (0,7) | h (0,8) | i (0,9) |
| Indicator Keyword | c 1 | r 2 | a 3 | n 4 | k 5 | t 6 | c 1 | r 2 | a 3 |
| Ciphertext | (1,1) c | (2,2) e | (3,3) m | (4,4) s | (5,5) p | (6,6) z | (1,7) l | (2,8) j | (3,9) d |
So finally
| Plaintext | : abcdefghi |
| CipherKeyword | : quagmire |
| IndicatorKeyword | : crankt |
| IndicatorPosition | : a |
| Ciphertext | : cemspzljd |
2. Quagmire 2 Cipher encoder
Text : hello world
Keyword : quagmire
Indicator Keyword : crankt
Indicator Start Position : aSolution:Quagmire 2 cipher is a periodic substitution cipher that uses Standard Alphabet (A-Z) for plaintext and Keyed Alphabet for ciphertext.
1. Build the Keyed Alphabet :For Keyword quagmire, remove any duplicate letters and append the remaining letters of A–Z in order
Plain Key Alphabet = abcdefghijklmnopqrstuvwxyz
Cipher Key Alphabet = quagmirebcdfhjklnopstvwxyz
2. Build the Cipher Rows :Indicator Keyword = crankt
Indicator Start Position = a
Each letter in the indicator key, shifts cipher key alphabet, so that indicator letter aligns under a
| | 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 | 26 |
| 0 | 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 |
| c | 1 | c | d | f | h | j | k | l | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b |
| r | 2 | r | e | b | c | d | f | h | j | k | l | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i |
| a | 3 | a | g | m | i | r | e | b | c | d | f | h | j | k | l | n | o | p | s | t | v | w | x | y | z | q | u |
| n | 4 | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b | c | d | f | h | j | k | l |
| k | 5 | k | l | n | o | p | s | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b | c | d | f | h | j |
| t | 6 | t | v | w | x | y | z | q | u | a | g | m | i | r | e | b | c | d | f | h | j | k | l | n | o | p | s |
3. Encrypt the Plaintext :Repeat Indicator Keyword crankt under Plaintext. For each letter, find its index in the Plain Key Alphabet (Row-0) and take the letter at that same position from the active Indicator Row (1 to 6)
| Plaintext | h (0,8) | e (0,5) | l (0,12) | l (0,12) | o (0,15) | w (0,23) | o (0,15) | r (0,18) | l (0,12) | d (0,4) |
| Indicator Keyword | c 1 | r 2 | a 3 | n 4 | k 5 | t 6 | c 1 | r 2 | a 3 | n 4 |
| Ciphertext | (1,8) n | (2,5) d | (3,12) j | (4,12) u | (5,15) a | (6,23) n | (1,15) x | (2,18) x | (3,12) j | (4,4) s |
So finally
| Plaintext | : helloworld |
| CipherKeyword | : quagmire |
| IndicatorKeyword | : crankt |
| IndicatorPosition | : a |
| Ciphertext | : ndjuanxxjs |
This material is intended as a summary. Use your textbook for detail explanation.Any bug, improvement, feedback then
Submit Here