Cryptography (from the Greek kryptos, meaning "hidden", and graphein, meaning "to write") is the mathematical foundation of digital security. It encompasses the principles and methods of transforming intelligible information (Plaintext) into an unintelligible, random-looking format (Ciphertext), and back again, ensuring confidentiality, data integrity, authentication, and non-repudiation.
Modern digital systems rely on two distinct mathematical branches of encryption:
Figure 15.1: Comparative Architecture of Symmetric Secret Key Ciphers vs Asymmetric Public Key Pairs
| Property | Symmetric Key Cryptography | Asymmetric Key Cryptography |
|---|---|---|
| Number of Keys | Single Key: The exact same secret key is used to both encrypt and decrypt data. | Key Pair: Public Key (shared with the world) + Private Key (kept strictly secret). |
| Computational Speed | Extremely Fast (Gigabytes per second with CPU hardware acceleration like Intel AES-NI). | Computationally Slow (~1,000x slower due to complex modular arithmetic and large primes). |
| Primary Application | Bulk data encryption (database tables, hard drive bitlocker, VPN tunnels, TLS payload). | Key exchange negotiation, digital signatures, identity verification, TLS handshakes. |
| Top Algorithms | AES-256-GCM, ChaCha20-Poly1305. | RSA (2048/4096), ECC (Curve25519, secp256r1). |
| Key Distribution Issue | Severe challenge: How do two parties safely share the secret key over an untrusted internet? | Solves key distribution completely! Anyone can encrypt with your public key; only you can decrypt. |
Within symmetric encryption, algorithms process plaintext using two fundamental architectural approaches:
Because different algorithms rely on distinct mathematical problems, raw key length in bits is not directly comparable. The table below illustrates equivalent security strength based on NIST guidelines:
| Security Bits Level | Symmetric Key (AES) | Asymmetric RSA Key | Elliptic Curve Key (ECC) | Estimated Years to Crack |
|---|---|---|---|---|
| 80 bits (Obsolete / Broken) | 2TDEA (Skipjack) | RSA-1024 | ECC-160 | Can be cracked today in hours! |
| 112 bits (Legacy) | 3DES (Triple DES) | RSA-2048 | ECC-224 | Phasing out by NIST. |
| 128 bits (Industry Standard) | AES-128 | RSA-3072 | ECC-256 (secp256r1) | Immune to brute force through 2035+. |
| 256 bits (Top Secret / Military) | AES-256 | RSA-15360 | ECC-512 (Curve448) | Resistant even to future Quantum computing! |
In real-world systems (like HTTPS and PGP), engineers never choose between symmetric and asymmetric encryption; they use a Hybrid Cryptosystem: Asymmetric encryption (RSA or ECDHE) is used for a fraction of a second to securely negotiate a random session key, and then blazing-fast Symmetric encryption (AES-256-GCM) is used to encrypt the actual bulk data stream!
Broaden your defensive and offensive security knowledge across our curriculum:
Deep dive into block ciphers, key sizes, initialization vectors, and AEAD.
Mathematical foundations of RSA factoring and elliptic curve discrete logs.
One-way compression functions, collision resistance, and password hashing.
High-yield university questions comparing symmetric and asymmetric encryption.