Skip to main content

What is public key cryptography

Short answer

Public-key cryptography uses a public key known to all and a private key kept secret. Data encrypted with the public key decrypts only with the private key, and signatures made with the private key verify with the public key. It provides confidentiality, authentication, and digital signatures without preshared secrets.

What is public key cryptography?

Public-key (asymmetric) cryptography uses a pair of mathematically related keys: a public key that is known to everyone and a private key that is kept secret by the owner. Data encrypted with the public key can be decrypted only with the matching private key, and data signed with the private key can be verified by anyone with the public key.

It removes the need to share a secret key beforehand and provides confidentiality, authentication and digital signatures. Examples: RSA, ElGamal, Diffie-Hellman, ECC.

Alice --encrypt with Bob's PUBLIC key--> Bob decrypts with his PRIVATE key

✓ Answer checked by Claude Opus 5.5 (high effort)

All Computer Networks and Security chapter 8 questions →