Symmetric vs Asymmetric Encryption: One Key or a Padlock?

Symmetric vs Asymmetric Encryption: One Key or a Padlock?

Symmetric encryption uses one secret key to both lock and unlock data, so everyone who needs to read the message must have that same key. Asymmetric encryption uses a matched pair of keys instead: a public key that anyone can use to lock something, and a private key that only its owner keeps and uses to unlock it. Symmetric encryption is fast; asymmetric encryption solves the problem of sharing a key with a stranger. Almost every secure system you use today mixes the two.

That’s the core of it. The rest of this post makes it concrete with two everyday objects, a side-by-side table, and a look at what actually happens when you open a secure website.

Start with two boxes

Picture a small metal box with an ordinary lock. One key opens it and the same key closes it. If you want to send your sister a letter in that box, she needs a copy of your key. That’s symmetric encryption: one shared secret.

It works well, but notice the awkward part. How do you get the key to your sister in the first place? If you post it in an envelope, anyone who opens the envelope can copy it and read every letter you send from then on. The lock is only as safe as the trip the key made.

Now picture a different kind of box, one with a padlock that snaps shut. You hand out open padlocks to anyone who asks. A friend puts a letter in a box, clicks your padlock shut, and sends it. Once it’s closed, even your friend can’t open it again. Only you can, because only you hold the key to your padlocks.

That’s asymmetric encryption. The open padlock is your public key: you can give it to the whole world without worry. The key that opens it is your private key: it never leaves your hands. Nobody had to send a secret through the post.

The one-line memory aid: symmetric = one key, shared by both sides. Asymmetric = two keys, one you share (to lock) and one you keep (to unlock).

Symmetric vs asymmetric encryption, side by side

Symmetric encryption Asymmetric encryption
Keys One secret key, used to lock and unlock A key pair: public key and private key
Speed Very fast, even for huge files and video streams Much slower; used on small pieces of data
The big problem Both sides need the same key, so it has to be shared safely first Heavy maths and larger keys; you also need to be sure a public key really belongs to the person you think
Well-known examples AES (Advanced Encryption Standard), ChaCha20 RSA, elliptic-curve cryptography (ECC), such as ECDH and ECDSA
Typical uses Encrypting files, disks, Wi-Fi traffic and the data inside a secure web connection Agreeing on a key with someone new, digital signatures, sending something only one person can open

Two words in that table are worth a closer look.

Speed. Symmetric ciphers like AES are so efficient that most modern phone and laptop chips have special instructions built in for them. Asymmetric maths works with very large numbers or points on curves, which takes far more effort per byte. That’s why nobody encrypts a whole film with RSA.

Trust in public keys. A public key is safe to share, but you still need to know it’s the right one. If a crook swaps in their own padlock and you lock your letter with it, they can open it. On the web, certificates signed by trusted authorities do this checking. In apps, you might compare a short fingerprint of the key with the other person.

Why real systems use both

If symmetric is fast and asymmetric solves the key-sharing problem, the obvious move is to combine them: use the clever, slow method once to set up a shared secret, then switch to the fast method for everything else. That’s exactly what happens every time you see the padlock in your browser’s address bar.

Here’s a simplified walk through a modern HTTPS connection (TLS 1.3):

  1. Hello. Your browser contacts the website and sends a fresh, single-use public value it has just made for this visit.
  2. The server answers with its own fresh public value, plus its certificate.
  3. Both sides work out the same secret. Using a key-agreement method called ephemeral Diffie-Hellman (usually the elliptic-curve version, ECDHE), each side combines its own private half with the other side’s public value. They arrive at the same shared secret, yet that secret never travelled over the network.
  4. The server proves who it is. It signs the conversation with the private key that belongs to its certificate. Your browser checks the signature, so it knows it isn’t talking to an impostor.
  5. Switch to symmetric. From the shared secret, both sides derive symmetric keys. Every page, image and form you send from then on is encrypted with a fast cipher such as AES-GCM or ChaCha20-Poly1305.

One detail people often get wrong: in TLS 1.3, the browser does not encrypt a key with the server’s RSA public key and send it over. That older method (“RSA key transport”) was removed. Today the key is agreed fresh for each connection and then thrown away, so even if a site’s long-term private key leaked years later, recorded old conversations would stay locked. This property is called forward secrecy. Newer browsers also mix in an extra method designed to hold up against future quantum computers, but the shape of the handshake is the same: asymmetric to agree, symmetric to talk.

So in practice, asymmetric encryption is the handshake and the ID check, and symmetric encryption does the heavy lifting.

How a zero-knowledge password manager uses both

Password managers are a nice, real-world example because they need both kinds for different jobs. Here’s how PassHulk does it, kept to the facts.

Your own vault: symmetric. When you unlock PassHulk, your master password is turned into a key on your own device using Argon2id, a deliberately slow, memory-hungry method that makes guessing expensive for attackers. Your items are then encrypted with AES-256-GCM, a symmetric cipher, before anything is sent. The master password never leaves your device, and the server only ever stores locked data, so PassHulk staff can’t read your vault. If you’d like the longer story of why that matters when a company gets breached, see how password managers protect you from data breaches.

Why symmetric here? Because it’s you locking and unlocking your own data. There’s nobody to send a key to; the key is rebuilt from your master password each time.

Sharing with another person: asymmetric. Now suppose you want to share a login with someone else who uses PassHulk. You can’t hand them your vault key. Instead, each account has a key pair. The item is locked so that only the other person’s private key can open it, using their public key, the open padlock from earlier. The server passes along a box it can’t open. Keep in mind that sharing is about trust as well as maths: the person you share a password with can see and use it.

If you’re new to the whole idea of a vault, what a password manager is and how it works covers the basics. You can also read about the rest of what PassHulk does on the features page.

Passkeys are another everyday use of the asymmetric idea: the website keeps only your public key, and your device keeps the private one and uses it to sign in. There’s more on that in passkey vs password.

A quick glossary

  • Key: a long, random-looking value that controls encryption. Without the right key, encrypted data looks like noise.
  • Public key: the half of a key pair you can share freely. Others use it to lock data for you or to check your signatures.
  • Private key: the half of a key pair you never share. It unlocks what was locked with your public key and creates your signatures.
  • Key exchange (key agreement): a way for two parties to end up with the same secret key over an open network without ever sending that key, for example ECDHE in HTTPS.
  • Cipher: the method that does the actual encrypting and decrypting, such as AES.

The takeaway

Symmetric encryption is a single shared key: fast, simple, and the workhorse for almost all data. Asymmetric encryption is a public and private key pair: slower, but it lets strangers set up a secret safely and lets you prove who you are. Neither one replaces the other. The padlock in your browser, the apps on your phone and a well-built password manager all use asymmetric encryption to get started and symmetric encryption to get the work done.

Don’t wait for the next leak. Get every password protected.

PassHulk creates a strong, unique password for every account, fills it in for you, and warns you when one turns up in a breach.

Start free trial
15 days freeNo card neededNothing charged when it ends