Public key cryptography is a type of cryptography that uses a pair of keys to encrypt and decrypt data. One of the keys is public and can be shared with anyone, while the other key is private and must be kept secret. Data that is encrypted with the public key can only be decrypted with the private key, and vice versa. This type of cryptography is used in SSL/TLS to secure communications between a client and a server.