1. The Advanced Encryption Standard (AES)
Selected by NIST in 2001 to replace DES, the Rijndael cipher (AES) is a symmetric substitution-permutation block cipher that encrypts 128-bit data blocks using key sizes of 128, 192, or 256 bits through repeated transformation rounds (10, 12, or 14 rounds respectively).
Each round transforms a 4 × 4 byte state matrix through four algebraic operations:
- 1SubBytes: Non-linear byte substitution using an S-Box lookup table, providing resistance against differential cryptanalysis.
- 2ShiftRows: Cyclic permutations shifting the rows of the state matrix by distinct byte offsets.
- 3MixColumns: Multiplies each column of the state matrix by a fixed polynomial in the Galois Field GF(2^8), diffusing single-bit modifications across the entire block.
- 4AddRoundKey: XORs the state matrix with subkeys generated from the master key via the Rijndael key schedule.
2. Authenticated Encryption: AES-GCM
Encrypting data alone (confidentiality) does not prevent an active attacker from modifying ciphertext in transit.
Modern secure network protocols (TLS 1.3, IPsec, SSH) require Authenticated Encryption with Associated Data (AEAD):
- AES-GCM (Galois/Counter Mode): Combines counter mode encryption with universal hash authentication in the binary Galois field. It produces both ciphertext and an authentication tag, guaranteeing that any tampering or bit flips in transit are immediately detected before decryption.
3. Quantum Key Distribution (QKD) & The BB84 Protocol
While post-quantum cryptography develops mathematical algorithms resistant to quantum computers, Quantum Key Distribution (QKD) utilizes fundamental laws of quantum physics to exchange cryptographic keys with provable eavesdropping detection.
Alice (Transmitter) Bob (Receiver)
[ Random Bits ] [ Random Basis ]
| |
v v
[ Polarized Photons ] === (Quantum Channel) ===> [ Measurement ]
|
Alice <========= (Public Discussion) ==========> Bob
- Reconcile matching bases -> Sifted Key
- Compare test sample -> Detect eavesdropper if QBER > thresholdThe BB84 Protocol Mechanics
- 1Alice generates random bits and encodes them onto single photons using one of two non-orthogonal polarization bases:
- Rectilinear Basis ($+$): Horizontal (0° = 0) or Vertical (90° = 1).
- Diagonal Basis ($×$): Diagonal Left (45° = 0) or Diagonal Right (135° = 1).
- 1Bob measures each incoming photon by selecting a measurement basis at random (+ or ×).
- 2Over an unencrypted public channel, Alice and Bob compare the sequence of measurement bases they chose (without revealing the measured values).
- 3Whenever their bases matched, their bit values are guaranteed to be identical, forming the shared Sifted Key.
- 4Eavesdropping Detection: According to the Heisenberg Uncertainty Principle and the Quantum No-Cloning Theorem, an eavesdropper (Eve) cannot measure photons without disturbing their quantum wave function. If Eve attempts to intercept photons, she inevitably introduces an approximate 25% error rate on matching-basis bits, allowing Alice and Bob to detect the intrusion with certainty!