Core Concepts

Asymmetric Encryption

Anyone can lock the biscuit tin, but only you hold the secret key to open it.

Star Icon

The Key Exchange Problem
In Symmetric Encryption, Bob and Jane must share a secret key before they can communicate securely. But what if they live on opposite sides of the world? If they send the key over the internet, a spy might intercept it and read all their future messages!

Enter Public Key Cryptography

Asymmetric Encryption (also known as Public Key Cryptography) solves this by using a Key Pair. Instead of one shared secret key, we use two mathematically related keys, a Public Key and a Private Key. They are generated together using a mathematical formula, and they have a unique relationship: what one key scrambles, only the other key can unscramble.

  • The Public Key This key is completely public. You can publish it on the internet or email it to anyone. It is used exclusively to scramble (encrypt) messages. Bob's Public is represented as a Triangle Triangle.
  • The Private Key: This key is known only to the owner. It is used to decrypt messages. It is never shared or transmitted over the internet. Bob's private key is represented as a Star Star.

How Bob and Jane Share Secrets Safely

  • Step 1: The Setup. Bob generates his key pair.Triangle Public Key and Star Private Key
  • Step 2: Sharing the Public Key. Bob mails his Triangle Public Key to Jane over the open internet. The koala spy might see the Triangle Public Key, but it doesn't matter! Public keys are public information.
  • Step 3: Sending the Secret. Jane then encrypts her top-secret recipe with Bob's Triangle Public Key.
  • Step 4: Secure Delivery. Jane sends the Encrypted Message back to Bob. The spy intercepts it, but they don't have the Star Private Key, so all they see is a plain triangle. The recipe is safe.
  • Step 5: Decryption. Bob receives the Encrypted Message. Using his hidden Star Private Key, he decrypts the message and reads Jane's recipe!

Interactive Visualiser: Using Asymmetric Cryptology to Send a Secret

Step through the protocol to see how Bob and Jane securely share a secret over an untrusted network using different shaped biscuits.

Awaiting Input

Jane wants to send a secret to Bob. Enter a secret above to begin.

🏠

Jane (Sender)

The Internet

Koala Spy with Binoculars
🏭

Bob (Receiver)

Next: Core Concepts

Prime Factorisation: The Math Behind the Lock

How do Bob and Jane mathematically build asymmetric key pairs? Discover why multiplying primes is effortless, but un-baking them is practically impossible without the private key.

Explore Prime Factorisation →
Scroll Biscuit