Maths and Computing:

menu
Home
Books
Coding
Computing
Data
Encoding
Mathematics

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 = 9, Shift 2 = 14

Decode boes

Enter Answer

Shift 1 = 9, Shift 2 = 14

plaintextabcdefghijklmnopqrstuvwxyz
alphabet 1jklmnopqrstuvwxyzabcdefghi
alphabet 2opqrstuvwxyzabcdefghijklmn

The answer is: save

Polyalphabetic Cipher Question

Shift 1 = 5, Shift 2 = 22 , Shift 3 = 5

Decode gwhpcwtqsi

Enter Answer

Shift 1 = 5, Shift 2 = 22 , Shift 3 = 5

plaintextabcdefghijklmnopqrstuvwxyz
alphabet 1fghijklmnopqrstuvwxyzabcde
alphabet 2wxyzabcdefghijklmnopqrstuv
alphabet 3fghijklmnopqrstuvwxyzabcde

The answer is: background

Polyalphabetic Cipher Question

Shift 1 = 19, Shift 2 = 15 , Shift 3 = 11 , Shift 4 = 14

Decode lizftvp

Enter Answer

Shift 1 = 19, Shift 2 = 15 , Shift 3 = 11 , Shift 4 = 14

plaintextabcdefghijklmnopqrstuvwxyz
alphabet 1tuvwxyzabcdefghijklmnopqrs
alphabet 2pqrstuvwxyzabcdefghijklmno
alphabet 3lmnopqrstuvwxyzabcdefghijk
alphabet 4opqrstuvwxyzabcdefghijklmn

The answer is: storage

Contents Copyright 2026 Andy Abraham

Please email comments to info@mathsandcomputing.co.uk