Decryption
ELI5 — The Vibe Check
Decryption is using the secret decoder ring to turn scrambled gibberish back into a readable message. If encryption locks the box, decryption is the key that opens it. Without the right key, the box stays locked forever.
Real Talk
Decryption is the reverse of encryption — it uses a key and algorithm to convert ciphertext back into readable plaintext. The key used for decryption may be the same as (symmetric) or different from (asymmetric) the encryption key.
Show Me The Code
// AES decryption with Node.js crypto
const decipher = createDecipheriv('aes-256-cbc', key, iv);
let decrypted = decipher.update(encrypted, 'hex', 'utf8');
decrypted += decipher.final('utf8');
console.log(decrypted); // 'secret message'
When You'll Hear This
"The server decrypts the payload before processing it." / "Without the private key, you can't decrypt the data."
Related Terms
Asymmetric Encryption
Asymmetric encryption uses two different keys — one to lock (public key), one to unlock (private key).
Encryption
Encryption is scrambling your message into gibberish so only someone with the secret decoder ring can read it.
Private Key
A private key is the secret key that only YOU keep. It can decrypt messages encrypted with your public key, or sign messages to prove they came from you.
Symmetric Encryption
Symmetric encryption uses the same key to lock and unlock data. Like a house key — whoever has a copy can both lock and unlock the door.