I wish to demonstrate asymmetric encryption using real-world locks. For example, I want to write a secret on a piece of paper and deposit it in a locked box. Is there a lock I can buy that comes with two keys, one that only locks the lock and another that only unlocks the lock?
The usual example is a padlock and a key for it.
Bob gives Alice a padlock (his "public key") and he keeps the key for that padlock (his "private key").
Alice puts a message in a box, and snaps the padlock on to it. She then sends the box to Bob.
Bob can unlock it with his key.
An extended version of this is described at https://web.archive.org/web/20130708131404/http://www.economicexpert.com/a/Asymmetric:key:algorithm.html
I like David's answer, but just thought I'd mention that I've seen that demonstrated as a bad example of security - the reasoning was that there was no way to ensure that Alice received the padlock that Bob sent (Eve could swap it for a different padlock in transit)
The demonstration then moved on to an example with one box and two padlocks, which was demonstratively secure...
Alice puts message inside the box and locks it with her padlock (public key padlock) Sends box to recipient (Bob)
Bob adds another padlock (private key padlock) Sends box back to Alice
Alice removes the public key padlock (with her key), meaning the package is now protected only by the private key.
Alice returns box to Bob who can now unlock with the private key.
For added effect you can have an Eve passing the boxes back and forth and showing that at no point can Eve get into the box. Its a great physical example, and easily understandable to showing the package is secure at all points.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With