Public Key Cryptography
Public key cryptography is a method of securing information that uses a pair of mathematically related keys: a private key kept secret by its owner and a public key that can be shared freely with anyone. Data protected with one key of the pair can be processed with the other, which allows people to exchange information securely or verify who sent something without first sharing a secret password. This is different from older approaches that rely on both parties holding the same single secret key.
Public key cryptography, also called asymmetric cryptography, is a class of cryptographic systems built on pairs of mathematically related keys, where a private key is held secret and a corresponding public key is distributed openly. Depending on the algorithm and how it is applied, the key pair typically supports two distinct operations that should not be conflated: encryption/decryption (data encrypted for a recipient using their public key can be decrypted only with the corresponding private key) and digital signing/verification (data signed with a private key can be verified with the corresponding public key, supporting integrity and origin authentication). In IAM contexts, note that signing provides authentication and integrity but is not the same as encrypting for confidentiality; the specific security properties depend on the algorithm, key sizes, and protocol profile in use. This entry covers the general model; specific schemes, key-exchange mechanisms, and PKI trust management are out of scope here.
Why it matters
Public key cryptography underpins nearly every modern identity and access management protocol. Because it lets two parties establish trust without first sharing a common secret, it enables the secure exchange of information and the verification of a sender's identity at internet scale. This asymmetric model is what allows federation standards, token-based systems, and passwordless authentication mechanisms to function without requiring every relying party to hold a shared secret with every user or issuer.
For IAM practitioners, the distinction between the two operations public key cryptography supports is critical. Digital signing and verification provide integrity and origin authentication, confirming that data was produced by the holder of a particular private key and has not been altered, while encryption and decryption provide confidentiality. These properties are not interchangeable: a signed token is not necessarily an encrypted token, and treating signing as though it protects confidentiality is a common and consequential error. The specific guarantees a system provides depend on the algorithm, key sizes, and protocol profile in use.
The security of the entire model rests on the secrecy of private keys. A public key can be distributed freely to anyone, but if a corresponding private key is exposed, the assurances that depend on it, whether authentication of a signer or confidentiality of encrypted data, collapse. This makes private key protection, storage, and lifecycle handling a central operational concern for any deployment that relies on asymmetric cryptography.
Who it's relevant to
Inside PKC
Common questions
Answers to the questions practitioners most commonly ask about PKC.
