Chapter 11 of 22 Part III: Trust, Cryptography & Security

The Art of Secret Messages

Open Standalone Full-Screen Lab ↗ Download Lab HTML

Before You Experiment: Hypothesis

In Bonus AES-GCM, flip one character of the ciphertext or IV and verify that decryption fails with an authentication error rather than silently returning garbled text.

Lab Sections & Troubleshooting

Activities: A. The secret alphabet · B. The pattern detective · C. Agree on a secret · Bonus: authenticated encryption

Web Crypto (AES-GCM) requires a secure context (HTTPS or localhost). Do not open the HTML lab via file:// if testing AES-GCM.