Protecting Data with Mathematics
Cryptography is the science of securing information by converting it into unreadable formats using algorithms and keys.
Confidentiality 🔒 → hide data Integrity 🧩 → prevent changes Authentication 🪪 → verify identity
Symmetric → same key for encrypt/decrypt Asymmetric → public + private key pair Hashing → one-way data conversion
Same key 🔑 used for both encryption & decryption Fast but key must be shared securely Examples: AES, DES
Public key 🔓 encrypts data Private key 🔐 decrypts data Example: RSA, ECC
One-way function Input → fixed output Example: SHA-256 (used in Bitcoin)
Proves authenticity Ensures message is not tampered Used in blockchain & emails