Browsing as a guest — you can read this lesson freely, but you'll need to sign in to save notes or track progress.

Sign In
2

Encryption techniques

Chapter 2: Detailed Lesson

Classical Encryption Techniques

A comprehensive guide to symmetric encryption, from the substitution ciphers of ancient Rome to the complex rotor machines of WWII.

Symmetric Encryption Fundamentals

Symmetric encryption, also known as conventional or single-key encryption, was the only type of encryption in use prior to the invention of public-key cryptography in the 1970s. It remains the most widely used form of encryption today for data in transit and at rest.

Key Terminology

  • Plaintext:The original intelligible message or data.
  • Ciphertext:The scrambled message that appears random and unreadable.
  • Cipher:The pair of algorithms (encrypt and decrypt) used to transform the data.
  • Key:A piece of secret information used by the cipher. The exact output depends on this key.

The Symmetric Cipher Model

The security of this model depends on two major requirements: a strong encryption algorithm (so attackers can't break it just by looking at the math) and a secure channel for the sender and receiver to share the secret Key (K).

SenderPlaintext X
Shared Secret Key (K)
Encryption (E)
Ciphertext (Y)
Shared Secret Key (K)
Decryption (D)
Plaintext (X)

Cryptanalysis

This is the science of breaking codes by exploiting weaknesses in the algorithm itself or patterns in the language (like letter frequency). Attacks include:

  • Ciphertext Only: Attacker has only the coded message.
  • Known Plaintext: Attacker has a crib (plaintext + ciphertext pair).
  • Chosen Plaintext: Attacker can feed specific text into the machine to see the output.

Brute Force Attack

This involves trying every possible key until the message makes sense. Security depends entirely on the Key Size.

Key SizeTime to Crack
32-bitMilliseconds
56-bit (DES)Hours (with supercomputer)
128-bit (AES)Billions of Years

Keep reading — this lesson marks itself done automatically.