Free Hosting : Free Web Hosting  

Quick Overview

Name:              Quagmire I / Type I Quagmire
Type:              Substitution
Ease of use:       Easy / Intermediate / Difficult
Breaking the code: Easy / Intermediate / Difficult

Background

The Quagmire I cipher is a polyalphabetic substitution cipher using a keyword and an indicator key to create a cipher table used for encoding and decoding information. Quagmire II, III and IV also exist and are mentioned on their respective pages.

The encoding and decoding is similar to the Vigenère cipher, but the table used is not a fixed one. The table is created by a keyed alphabet using a keyword and an indicator key that defines the rows below it. It is easiest to demonstrate this by use of an example. Let's use the keyword 'SPEARHEAD' and indicator key 'SHARP' to construct the table:

S P E A R H D B C F G I J K L M N O Q T U V W X Y Z
P Q R S T U V W X Y Z A B C D E F G H I J K L M N O
E F G H I J K L M N O P Q R S T U V W X Y Z A B C D
X Y Z A B C D E F G H I J K L M N O P Q R S T U V W
O P Q R S T U V W X Y Z A B C D E F G H I J K L M N
M N O P Q R S T U V W X Y Z A B C D E F G H I J K L

The table is constructed by placing the keyed alphabet on top, removing any duplicate letters from the keyword. Below the 'A' in the top row, the indicator key is written vertically. This defines the cipher alphabets to be used. They are all Caesar's Shifts, therefore they are not scrambled.

Method

The encoding is done by looking up the plaintext letter in the top row and going down one more step each letter. I.e. the first letter is the letter in the table one letter below the plaintext letter, the second letter is in row two below the top row, and so on.

Example

Using the table we defined above I'll show you how to encode the message 'Retreat north now'. Look up the first letter of the plaintext, the 'R' in the top row. Find the letter one row below it, in this case the 'T'. The second letter of our plaintext is the 'E'. Look it up and go down two rows to find the ciphertext letter, in this case the 'G'. Continue to do so for all plaintext letters, returning to row one after the bottom row is used. The resulting ciphertext will be:

Plaintext:  RETREAT NORTH NOW
Keyword:    SPEARHEAD
Indicator:  SHARP
Ciphertext: TGQSOSX NFQIJ NFI
Formatted:  TGQSO SXNFQ IJNFI

Continue to the tool for this cipher or go back to the list of ciphers.