Home > College Algebra > Ciphers > Quagmire 2 Cipher (encoder / decoder) example

66. Quagmire 2 Cipher (encoder / decoder) example ( Enter your problem )

1. Examples





1. Quagmire 2 Cipher encoder

Text : ABCD efghi
Keyword : quagmire
Indicator Keyword : crankt
Indicator Start Position : a


Solution:
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

1234567891011121314151617181920212223242526
0abcdefghijklmnopqrstuvwxyz
c1cdfhjklnopstvwxyzquagmireb
r2rebcdfhjklnopstvwxyzquagmi
a3agmirebcdfhjklnopstvwxyzqu
n4nopstvwxyzquagmirebcdfhjkl
k5klnopstvwxyzquagmirebcdfhj
t6tvwxyzquagmirebcdfhjklnops

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)

Plaintexta
(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 Keywordc
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 : a


Solution:
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

1234567891011121314151617181920212223242526
0abcdefghijklmnopqrstuvwxyz
c1cdfhjklnopstvwxyzquagmireb
r2rebcdfhjklnopstvwxyzquagmi
a3agmirebcdfhjklnopstvwxyzqu
n4nopstvwxyzquagmirebcdfhjkl
k5klnopstvwxyzquagmirebcdfhj
t6tvwxyzquagmirebcdfhjklnops

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)

Plaintexth
(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 Keywordc
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





Share this solution or page with your friends.
 
 
Copyright © 2026. All rights reserved. Terms, Privacy
 
 

.