Higher Math: Cryptography and Coding Theory

About the course

Information and entropy: joint and conditional entropy, mutual information. Prefix codes, the Kraft inequality, the Huffman code. The binary symmetric channel and its capacity. The parity bit, checksums, CRC over GF(2). Hamming distance, error correction, the Hamming (7, 4) code and the syndrome. Substitution and Vigenère ciphers, frequency analysis, the one-time pad, block ciphers and modes, key length and brute force. Fast exponentiation, inverses modulo n, RSA with small numbers and factoring, Diffie–Hellman key exchange. Hash functions and the birthday paradox, digital signatures. Password storage, salt and a slow hash, the idea of TLS. A continuation of number theory and probability.

Course program: 35 lessons

Information and compression

  1. Entropy of a distribution
  2. Joint and conditional entropy, mutual information
  3. Prefix codes and the Kraft inequality
  4. The Huffman code and the average length
  5. Checkpoint: information and compression

The channel and detecting errors

  1. The binary symmetric channel
  2. Channel capacity
  3. The parity bit and the checksum
  4. CRC: polynomial division over GF(2)
  5. Checkpoint: the channel and detecting errors

Correcting errors

  1. Hamming distance and the minimum distance of a code
  2. Detecting and correcting errors
  3. The Hamming (7, 4) code: encoding
  4. The Hamming (7, 4) code: syndrome and decoding
  5. Checkpoint: correcting errors

Ciphers

  1. The substitution cipher and frequency analysis
  2. The Vigenère cipher
  3. The one-time pad and perfect secrecy
  4. Block ciphers and modes of operation
  5. Key length and brute force
  6. Checkpoint: ciphers

Public keys and RSA

  1. Fast modular exponentiation
  2. The inverse and Euler's function
  3. RSA with small numbers
  4. Why RSA is strong: factoring
  5. Checkpoint: public keys and RSA

Key exchange, hashes and signatures

  1. Diffie–Hellman key exchange
  2. Hash functions: properties
  3. The birthday paradox and collisions
  4. Digital signatures
  5. Checkpoint: key exchange, hashes and signatures

Practice

  1. Password storage: salt and a slow hash
  2. TLS: a secure connection
  3. Checkpoint: in practice

Final test

  1. Final test in cryptography and information theory