Skip to content
← All questions

What is a substitution cipher?

A substitution cipher is a type of cipher that changes one character or symbol into another consistently across the entire message.

Conditions

  • The cipher operates on characters or symbols.
  • The replacement rule is applied to all instances of a given character within the message.

Reasoning, step by step

  1. Identify the basic operation of the cipher: replacing characters or symbols.
  2. Note the consistency requirement: the same replacement is used in all instances.
  3. Understand that decryption involves reversing this consistent substitution.

Example

The video defines it as: 'A substitution cipher changes one character or symbol into another.' It illustrates this with the mapping S→YS \to Y and D→MD \to M.

Common misconceptions

  • Assuming that a substitution cipher changes the positions of characters rather than the characters themselves.
  • Thinking that a character can be replaced by different symbols in different parts of the message.

Watch the explanation

Connected concepts

Explore next

Related questions

Find a method

↗
Find a method

↗
Find a method

↗

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.