Skip to content
Back to Path
Module 5 of 8

Public Key Cryptography

Public Key Cryptography uses a mathematically linked pair of keys: a Public Key (which you share) and a Private Key (which you keep secret). What one key locks, only the other can unlock.

Analogy

"A mailbox with a slot. Anyone can drop a letter in (Public Key), but only you have the key to open the back and read the mail (Private Key)."

Key Properties

  • Public Key: Like your email address or home address.
  • Private Key: Like your house key or password. NEVER share it.
  • The Magic: You can derive the Public key from the Private, but never the other way around.

Real World

This powers the entire internet. When you connect to Amazon, your browser uses Amazon's Public Key to lock your data so only Amazon's Private Key can open it.

Interactive Simulation

Live Environment

The Power of Two Keys

Symmetric encryption (like the Caesar Cipher) has a flaw: you have to share the secret key. Public Key Cryptography solves this by using TWO keys: one for locking (Public) and one for unlocking (Private).

Share with Everyone

Public Key

Your "Mailbox Address". Anyone can use this to send you a message or verify your signature.

Keep Secret

Private Key

Your "Mailbox Key". Only you have this. It opens messages sent to your public address and signs documents.

You

The Public Key Role

Think of this like your email address or your home address. You WANT people to have it so they can find you. It is mathematically generated from your private key, but you can't work backwards to find the secret.

Capabilities
  • Verify Signatures (Check authenticity)
  • Encrypt Messages (Send to owner)