Public-key cryptography — or asymmetric cryptography — is a cryptographic system in which keys come in pairs.