Public and private keys serve as the foundation for public key cryptography and are heavily relied upon in end-to-end encryption. Also referred to as asymmetric cryptography, public key cryptography works because each public key exclusively matches a single private key. “Public key cryptography provides the basis for securely sending and receiving messages with anyone whose public key you can access.”