A cryptosystem is a set of cryptographic algorithms that map ciphertexts and plaintexts to each other.

Private-key cryptosystems

Private-key cryptosystems use the same key for encryption and decryption.

Public-key cryptosystems

Public-key cryptosystems use a public key for encryption and a private key for decryption.