Skip to content
CryptoAcademy logo CryptoAcademy
Menu
Beginner Cryptography

Encryption

Scrambling data with a key so only someone holding the matching key can read it.

Encryption at a glance
Symmetric encryption uses one shared key; asymmetric uses a public and a private key Symmetric — AES-GCM Same key encrypts and decrypts Plaintext pay 1 BTC Ciphertext a9f3…1c Shared key K secret, 256-bit Fast · problem: how to share the key safely? Asymmetric — RSA / ECDSA A public key and its private key are a pair Public key shared with everyone Private key never leaves the owner mathematically linked (trapdoor) Anyone encrypts → only owner decrypts Slower · solves key distribution and signatures How the web combines both (TLS) 1. Your browser fetches the site's public key inside a certificate. 2. Both sides derive a temporary symmetric session key (key exchange). 3. Everything after that is encrypted fast with AES-GCM — signatures only prove who you are.

In simple terms

Encryption turns readable plaintext into unreadable ciphertext. With the right key it comes back; without it, you get noise.

Analogy

A locked box: anyone can carry it around, but only the key holder can open it.

Going deeper

Modern schemes are almost always authenticated (AEAD): AES-GCM or ChaCha20-Poly1305 provide confidentiality and integrity together, so tampered ciphertext fails loudly instead of decrypting to garbage. Nonce uniqueness is part of the contract.

Common mistake

Base64 and simple obfuscation are not encryption — without a key managed separately from the data, there is no confidentiality.

Share this page

Send this link to a friend, or scan the QR code to open it on your phone.