Skip to main content Skip to docs navigation

Encryption

In cryptography , encryption is the conversion of plaintext into a coded text or ciphertext . A ciphertext is intended to be unreadable by unauthorized readers.

On this page

Encryption is a cryptographic primitive: it transforms a plaintext message into a ciphertext using a cryptographic algorithm called a cipher . Encryption in modern ciphers is performed using a specific algorithm and a secret, called the key . Since the algorithm is often public, the key must stay secret if the encryption stays secure.

How encryption works.

Without knowing the secret, the reverse operation, decryption , is mathematically hard to perform. How hard depends on the security of the cryptographic algorithm chosen and evolves with the progress of cryptanalysis .

Updated on April 20, 2024 by Datarist.