Cryptography is the science of securing communication in the presence of adversaries. It is the mathematical backbone of web security.
Goals of Cryptography
- Confidentiality: Keeping secrets secret.
- Integrity: Detecting tampering.
- Authentication: Verifying identity.
- Non-Repudiation: Proving that a sender sent a message (they cannot deny it later).
History
From the simple Caesar Cipher (shifting letters) to the Enigma Machine in WWII, to modern Quantum-Resistant algorithms. Today, we rely on "Kerckhoffs's Principle": The security of a system should depend on the secrecy of the key, not the secrecy of the algorithm.