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
- Entropy of a distribution
- Joint and conditional entropy, mutual information
- Prefix codes and the Kraft inequality
- The Huffman code and the average length
- Checkpoint: information and compression
The channel and detecting errors
- The binary symmetric channel
- Channel capacity
- The parity bit and the checksum
- CRC: polynomial division over GF(2)
- Checkpoint: the channel and detecting errors
Correcting errors
- Hamming distance and the minimum distance of a code
- Detecting and correcting errors
- The Hamming (7, 4) code: encoding
- The Hamming (7, 4) code: syndrome and decoding
- Checkpoint: correcting errors
Ciphers
- The substitution cipher and frequency analysis
- The Vigenère cipher
- The one-time pad and perfect secrecy
- Block ciphers and modes of operation
- Key length and brute force
- Checkpoint: ciphers
Public keys and RSA
- Fast modular exponentiation
- The inverse and Euler's function
- RSA with small numbers
- Why RSA is strong: factoring
- Checkpoint: public keys and RSA
Key exchange, hashes and signatures
- Diffie–Hellman key exchange
- Hash functions: properties
- The birthday paradox and collisions
- Digital signatures
- Checkpoint: key exchange, hashes and signatures
Practice
- Password storage: salt and a slow hash
- TLS: a secure connection
- Checkpoint: in practice
Final test
- Final test in cryptography and information theory