Security · interactive
Digital signatures
Alice signs a hash of her message with her private key. Anyone with her public key can check it. This uses real RSA maths with tiny numbers so you can follow it; real keys are thousands of bits.
Signing (Alice)
“Pay Bob $10”
signature = hash^d mod n
= 938
Received by Bob
“Pay Bob $10”
signature 938
Bob hashes the message
1244
signature^e mod n (Alice's public key)
938^17 mod 3233 = 1244
1244 = 1244: valid signature
Alice's public key: n = 3233, e = 17. Her private d = 2753 never leaves her.
Alice's public key turns the signature back into the hash of the message. They match: Alice sent it, and it wasn't changed.
Scenario
Step 3 of 4 · read left to right
In production
Tools and technologies
Signatures secure TLS, software updates and tokens.
Not tied to one language — use these names when you search docs or design a system.