Maths and Computing:

menu
 
Home
Binary
Books
Boolean
Calculators
Coding
Computing
Encoding
Encryption
Mathematics
Series
    

Polyalphabetic

Polyalphabetic: Polyalphabetic Cipher


Polyalphabetic Cipher


The Polyalphabetic Cipher is a substitution cipher.

With a shift value of n a letter is replaced with the letter that is n positions further forward

Decryption

With a shift value of n a letter is replaced with the letter that is n positions further back. Alternatively, this is the equivalent of replacing each letter with the letter that is (26 - n) positions further back

Example

The grid below shows the substution values for a shift value of 3


plaintextabcdefghijklmnopqrstuvwxyz
ciphertextdefghijklmnopqrstuvwxyzabc

Using different shift values

The polyalphabetic cipher has different shift values for different letter positions

In this activity, plaintext encrypted with a cipher that has three alphabets, uses shift 1 for the 1st, 4th, 7th ... letters, shift 2 for the 2nd, 5th, 8th ... letters and shift 3 for the 3rd, 6th, 9th ... letters


Polyalphabetic Cipher Question

Shift 1 = 17, Shift 2 = 13

Decode gezzrep

Enter Answer

Shift 1 = 17, Shift 2 = 13

plaintextabcdefghijklmnopqrstuvwxyz
alphabet 1rstuvwxyzabcdefghijklmnopq
alphabet 2nopqrstuvwxyzabcdefghijklm

The answer is: primary

Polyalphabetic Cipher Question

Shift 1 = 11, Shift 2 = 11 , Shift 3 = 14

Decode ladpyr

Enter Answer

Shift 1 = 11, Shift 2 = 11 , Shift 3 = 14

plaintextabcdefghijklmnopqrstuvwxyz
alphabet 1lmnopqrstuvwxyzabcdefghijk
alphabet 2lmnopqrstuvwxyzabcdefghijk
alphabet 3opqrstuvwxyzabcdefghijklmn

The answer is: append

Polyalphabetic Cipher Question

Shift 1 = 18, Shift 2 = 19 , Shift 3 = 19 , Shift 4 = 3

Decode mlxuftfh

Enter Answer

Shift 1 = 18, Shift 2 = 19 , Shift 3 = 19 , Shift 4 = 3

plaintextabcdefghijklmnopqrstuvwxyz
alphabet 1stuvwxyzabcdefghijklmnopqr
alphabet 2tuvwxyzabcdefghijklmnopqrs
alphabet 3tuvwxyzabcdefghijklmnopqrs
alphabet 4defghijklmnopqrstuvwxyzabc

The answer is: username

Contents Copyright 2026 Andy Abraham

Please email comments to info@mathsandcomputing.co.uk