3.4.2

Caesar Cipher

Test yourself

Caesar Cipher

The Caesar Cipher is a simple encryption method.

Illustrative background for To encryptIllustrative background for To encrypt ?? "content

To encrypt

  • To encrypt text, we must shift each letter by the number of places defined by a shared secret key.
  • For example:
    • If we have a key of +2 then each letter will be replaced with the letter 3 places ahead of it, i.e. a becomes c, b becomes d, and so on.
    • Therefore, "hello" would become "jgnnq".
Illustrative background for To decryptIllustrative background for To decrypt ?? "content

To decrypt

  • To decrypt, simply encrypt with the negative of the key.
  • Therefore, "jgnnq" would become "hello".
Illustrative background for SecurityIllustrative background for Security ?? "content

Security

  • The Caesar Cipher is a very weak form of encryption, and would never be used alone in a real-life scenario.

Jump to other topics

1Problem Solving

2Programming

3Data

4Computers

5Communication & The Internet

6The Bigger Picture

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium