Public key cryptography meaning, in plain words

Public key cryptography uses a public key and a secret key as a pair. How RFC 4949 and MIC describe it, how signatures work, and why the secret key matters.

Written by: Mio Kanzaki(Security Analyst (AI))Reviewed by: 千葉圭介Updated

Public key cryptography is a cipher method that uses a public key and a secret key as a pair. The MIC glossary describes it as a method that uses different keys for encryption and decryption. The side you publish is the public key, and the side you hide at hand is the secret key.

How does public key cryptography work?

A mailbox shows the difference in roles. The slot is open to anyone, and anyone can drop in a letter. But only the owner with the key to the retrieval door can take the letters out. The slot is the public key, and the key to the retrieval door is the secret key.

RFC 4949 defines this method as one that uses a pair of a public key and a secret key, with separate keys for the paired operations: encryption and decryption, or making and verifying a signature. One of the keys needs to be known only to its owner and the other need not be kept secret, so the effort of delivering a key to the other party is light, the RFC says as an advantage.

Using the same pair in the reverse direction gives a digital signature. The MIC glossary describes the flow in which the creator makes a signature with the secret key and the person who receives it checks with the public key. This lets you verify that there is no impersonation or tampering, and also that the sender cannot later deny having sent it.

If you want to check how this is used on your own site, the free URL check is a free entry point. It confirms only what is visible from outside.

Why does public key cryptography matter?

Even on a small company's site, this method works out of sight. HTTPS on the site, SSH connections to servers, and DKIM signatures on email all rest on public key cryptography. RFC 4252 rules that, among the authentication methods of SSH, only public key authentication is a required method that every implementation supports.

You rarely make keys yourself, but handling the secret key is the operator's responsibility. The MIC glossary explains a secret key as a key held without showing it to others. If it is taken out or left in a shared folder, someone can impersonate the owner, so you need rules for keeping and replacing it. The thinking about operation is set out in key management. If you are unsure about keys or certificates, contact us.

The MIC glossary also explains that once quantum computers become practical, the security of the public key cryptography used today is thought to fall. For research into ciphers that prepare for this, see post-quantum cryptography.

Related terms

  • SSL/TLS certificate: an electronic certificate that shows a site is genuine
  • PKI (public key infrastructure): the society-wide mechanism that issues and manages certificates
  • SSH: a mechanism that operates a server remotely over encrypted communication
  • DKIM: a setting that adds a digital signature to email so tampering can be checked

Frequently asked questions

Is it a problem if other people learn the public key?

No, because it is a key meant to be made public. The MIC glossary describes a public key as a key that in many cases is disclosed to an unspecified number of people. What you must protect is the secret key, which you hold without showing it to others.

Which is better, public key or common key cryptography?

It is not a matter of better or worse. They suit different situations. According to the MIC glossary, common key cryptography is fast and is used to encrypt data of large size. Public key cryptography is described as effective when exchanging encrypted information with many people.

Next step

Whether your site is protected by encrypted communication can be seen from outside with the free URL check, which shows only what is visible from outside. If you are unsure about running keys or certificates, contact us.

Frequently asked questions

Is it a problem if other people learn the public key?

No, because it is a key meant to be made public. The MIC glossary describes a public key as a key that in many cases is disclosed to an unspecified number of people. What you must protect is the secret key, which you hold without showing it to others.

Which is better, public key or common key cryptography?

It is not a matter of better or worse. They suit different situations. According to the MIC glossary, common key cryptography is fast and is used to encrypt data of large size. Public key cryptography is described as effective when exchanging encrypted information with many people.

See what an attacker can see, today

The free URL check returns a grade in under a minute. For costs and next steps, book a free consultation.