Locked to Brightwater
secret1207 → 2881
Anyone closes it; only its key opens it.
Module 36 · Locks and keys
Larkspur Supply Co. orders from Brightwater Fasteners, a supplier it has never met, over a line anyone can watch. Here you mix paint, hand out padlocks and seal invoices.
The whole idea in one example
1207 → 2881
Anyone closes it; only its key opens it.
seal 1960
Only its key makes it; anyone checks it.
Toy-size numbers from this site’s own maths, small enough to check by hand. Real keys run to thousands of bits.
How it works
The key has to travel
NIST SP 800-38D: in AES-GCM, an IV must never be used twice with the same key, and a tag check catches any change to the ciphertext.
Source, checked 25 October 2026
Both ends make the same secret
Whitfield Diffie and Martin Hellman published key agreement over an open line in 1976, in “New Directions in Cryptography”.
Source, checked 25 October 2026
Anyone closes it, one key opens it
Ron Rivest, Adi Shamir and Leonard Adleman published RSA in 1978: one key encrypts and signs, the other decrypts and checks.
Source, checked 25 October 2026
A signature runs the other way
FIPS 186-5 (2023) specifies ECDSA signatures, including on the P-256 curve used here.
Source, checked 25 October 2026
The story
Larkspur Supply Co. orders from Brightwater Fasteners, a supplier it has never met; the team learns that anyone can close your padlock, only your key opens it, and a signature runs the other way. You’re on the team that sets up the line.
Your path




Chapter 4 · done
How does a signature prove who wrote a message, and that nobody changed it?



Anyone who has seen the padlock in a browser bar and wondered what it proves. The maths stays optional: every number is small enough to check by hand.