Fundamentals · 1.1

🔐 What Is Cryptography?

The art of keeping secrets — and proving you kept them⏱ ~3 min

✉️Cryptography is a locked letter

Imagine writing a letter, putting it in a locked box, and mailing it. Only the person with the right key can open the box and read it. Even if someone intercepts the box along the way, they see nothing useful. Cryptography does this digitally — it transforms readable data into scrambled noise that only authorized parties can unscramble.

A 4,000-Year-Old Problem

Cryptography predates computers by millennia. Ancient Egyptians used substitution in hieroglyphs around 1900 BCE. Julius Caesar shifted letters by 3 to send military orders. World War II was shaped by the breaking of Germany's Enigma cipher. Today cryptography secures every HTTPS website, every text message, and every bank transfer — invisibly, automatically, billions of times per second.

🤫ConfidentialityIntegrityAvailabilitySecurity =only the right people read it (C)nobody secretly changes it (I)it works when you need it (A)
The CIA triad — the three things all of security (and cryptography) protects

The Three Goals of Cryptography

GoalWhat It MeansExample
ConfidentialityOnly authorized parties can read the dataYour WhatsApp messages are unreadable to anyone but the recipient
IntegrityData has not been altered in transitA downloaded file's hash matches the publisher's hash — it wasn't tampered with
AuthenticityThe sender is who they claim to beA digital signature on an email proves it came from that person's key
★ FactNon-repudiation is a fourth goal: the sender cannot later deny having sent a message. Digital signatures provide this — once you sign something with your private key, the math proves it was you.

Core Vocabulary

TermDefinition
PlaintextThe original readable message (before encryption)
CiphertextThe scrambled output after encryption — unreadable without the key
EncryptionThe process of converting plaintext → ciphertext using an algorithm and key
DecryptionThe reverse — converting ciphertext → plaintext using the correct key
KeyA secret value that controls how the algorithm scrambles the data
Algorithm / CipherThe mathematical recipe for encryption and decryption
CryptanalysisThe science of breaking ciphers without the key

Kerckhoffs's Principle — The Most Important Rule in Cryptography

🔒 SecurityA cryptographic system should be secure even if everything about the system — except the key — is public knowledge. The algorithm must be publicly auditable. Security comes from the key, never from keeping the algorithm secret. 'Security through obscurity' is not real security.
💡 TipThis is why AES, RSA, and other modern algorithms are fully published and peer-reviewed. If an algorithm is secret, it probably has flaws that haven't been found yet — because no one has been looking.
🧠Quick Checkfirst try = +5 XP

According to Kerckhoffs's principle, what must stay secret?

0 XP🔥 0 days