All posts

Signing vs encrypting: the wax seal and the padlock

By Chidambaram Narayanan, , 3 min read

Every CISA candidate meets this question sooner or later:

"Which key should the sender use to…?"

And every year, good candidates get it wrong. Not because it's hard, but because signing and encrypting sound alike, and both use the same pair of keys.

So let's forget the maths and go back a few hundred years.


The wax seal

Picture a king sending a letter. He pours hot wax on the fold and presses his ring into it.

That seal does two things:

  • It proves who sent it. Only the king has that ring.
  • It proves nobody opened it. A broken seal shows tampering.

What the seal does not do is hide the message. Anyone who breaks it can read the letter.

That's a digital signature. The king's ring is his private key: only he has it. Anyone can check the seal against the king's known crest, his public key.

Signature = who sent it, and that it hasn't changed. It gives authenticity, integrity and non-repudiation. It does not give confidentiality.


The padlock

Now picture a different trick. You want to send a secret to a friend. Your friend hands out open padlocks to anyone who asks, but keeps the only key.

You put your message in a box, snap your friend's padlock shut and post it. Now nobody can open it, not even you. Only your friend, with their key.

That's encryption. The open padlocks are your friend's public key. The key that opens them is your friend's private key.

Encryption = who can read it. It gives confidentiality.


The rule that ends the confusion

Put the two pictures together and you get a rule you'll never forget:

  • To sign, use YOUR private key. (Your ring, your seal.)
  • To encrypt for someone, use THEIR public key. (Their padlock.)

And the reverse:

  • To check a signature, use the sender's public key.
  • To open something sent to you, use your own private key.

You never, ever use someone else's private key. If an answer option asks you to, it's wrong.


Why sign the hash, not the whole message?

Real systems don't press the seal on the entire letter. They first make a short fingerprint of it, called a hash, and sign that. It's quicker, and if even one comma changes, the fingerprint changes and the seal no longer matches.


Where the exam catches people

  • "Encrypting with the sender's private key gives confidentiality." It doesn't. Anyone with the sender's public key can read it. That's a signature, not a secret.
  • "A signed message is confidential." No. Signing proves origin and integrity; it doesn't hide anything.
  • "Non-repudiation is strong even with shared signing keys." No. If others can use the key, the sender can deny it was them.

Want both? Sign with your private key, then encrypt with their public key. Seal the letter, then lock the box.


The takeaway

Next time you see a key question, picture the king's ring and the friend's padlock.

Ring: yours, private, proves it's you. Padlock: theirs, public, keeps it secret.

If concepts like this help, my free book Crack the CISA explains 55 more of them the same way, with an analogy for each.