MDN’s new design is in Beta! A sneak peek:

In cryptography, decryption is the conversion of ciphertext into cleartext.

Decryption is a cryptographic primitive: it transforms a ciphertext message into plaintext using a cryptographic algorithm called a cipher. Like encryption, decryption 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.


The decryption primitive.

Decryption is the reverse of encryption and if the key stays secret, decryption without knowing the specific secret, decryption is mathematically hard to perform. How hard depends on the security of the cryptographic algorithm chosen and evolves with the progress of cryptanalysis.

Learn more

Document Tags and Contributors

 Contributors to this page: marumari, Andrew_Pfeiffer, hbloomer, prox, kscarfone, teoli
 Last updated by: marumari,