Cryptography
Learning outcomes:
- Explain the difference between symmetric and asymmetric encryption
- Describe how public and private keys, hashes, and digital signatures are used
- Encrypt stored data using a tool such as VeraCrypt
- Describe legal issues around encryption, such as backdoors and key disclosure laws
Would you like to download my PowerPoint to follow along?
- What is encryption?
- Encryption and decryption
- Who cares? Anyone who stores or sends private information
- Symmetric and asymmetric encryption
- Computer encryption history
- Enigma machines
- DES (Data Encryption Standard)
- Released 1977
- Triple DES
- Publicly broken in 1999
- Historical note: NIST retired Triple DES for encrypting new data at the end of 2023 (NIST SP 800-131A). Still worth knowing because older systems still use it, and it shows how standards get replaced as computers get faster.
- AES (Advanced Encryption Standard)
- Published 2001
- Approved for NSA classified data in 2003
- Hashes: MD5 and SHA-1 are broken now, so use SHA-256 or newer
- Post-quantum encryption
- Quantum computers could someday break the public key encryption we use today
- Harvest now, decrypt later: attackers can save encrypted data today, and wait until they can break it (NIST: What is post-quantum cryptography?)
- August 2024: NIST released the first three encryption standards built to resist quantum computers
- Companies are switching now, before quantum computers get big enough
- Cryptanalysis
- How much information is known: ciphertext only, known plaintext, or chosen plaintext
- Frequency analysis
- The love story of Alice and Bob
- Public and private keys: what happens if the private key is lost?
- Digital signatures
- One way functions and hash functions
- Passkeys are Alice and Bob in real life: a passkey is a private key kept on your phone or computer, and the website only ever gets your public key (Week 1)
- xkcd: Alice and Bob
- Encrypting stored data
- Mobile data
- Cloud data
- Backups
- Password control and management
- Encrypting communications
- Chat
- Timed encryptions
- After Salt Typhoon (Week 3) got into US phone companies, CISA and the FBI told people to use end-to-end encrypted apps like Signal (TechCrunch, CISA)
- Regular text messages (SMS) are not end-to-end encrypted
- May 2026: texts between iPhone and Android started getting end-to-end encryption, shown by a lock icon. It only works when everyone's phone carrier supports it (Apple, Google)
- Blockchain
- A continuously growing list of records
- Blocks linked and secured using cryptography
- An example of distributed computing, such as Bitcoin
- Legal issues
- Backdoors and golden keys
- The US used to treat encryption as a weapon for export, under the International Traffic in Arms Regulations
- Key disclosure laws, such as In re Boucher
- Backdoors in real life: in 2025, the UK government secretly ordered Apple to build a way into encrypted iCloud backups, for users anywhere in the world. Instead of building a backdoor, Apple turned off its Advanced Data Protection feature for UK users. iMessage and FaceTime stayed end-to-end encrypted (TechCrunch, CNN)
Suggested Activities and Discussion Topics:
- In class activity: Cipher Crack Race. In teams of 3 or 4, decode a message that was encrypted with a substitution cipher, using letter counts, short words, and double letters. The first team to decode the whole message wins. Handout: PDF (accessible HTML version)
- Try at home: use VeraCrypt to create a 20 MB encrypted container, mount it, add some files, and dismount it. What does the container look like in your file manager when it's dismounted?
- Discussion: can you build a backdoor that only the good guys can use?
- Discussion: should governments have a backdoor into encryption? Who benefits, and who is put at risk?
- Hands-on practice: try the free TryHackMe rooms Cryptography for Dummies and Crack the Hash. They run in safe practice environments built for learning, with a free account.
- Hands-on practice: try the Cryptography and General Skills challenges in picoCTF, a free practice platform from Carnegie Mellon University, now part of the CyLab Security Academy.
- Password cracking: follow the instructions on this PDF (accessible HTML version)
- Security video review: follow the instructions on this PDF (accessible HTML version)
Would you like to see some more classes? View all classes