Because the Internet is a public, shared infrastructure (packets pass through dozens of routers owned by various ISPs and governments before reaching their destination), any data sent in plain text can be easily intercepted and read by malicious actors (Packet Sniffing).
Cryptography is the science of mathematically scrambling data so that it becomes completely unreadable to anyone except the intended recipient.
A secure network must guarantee three primary objectives:
In Symmetric-Key cryptography, the exact same mathematical key is used for both Encryption (scrambling the data) and Decryption (unscrambling the data).
"SUPER_SECRET". Alice encrypts a PDF using that password and emails it to Bob. An attacker intercepts the PDF, but it looks like random garbage. Bob receives it and uses "SUPER_SECRET" to decrypt and read the PDF.Invented in the 1970s (Diffie-Hellman, RSA), Asymmetric cryptography solved the Key Distribution Problem using advanced mathematics (like prime number factorization).
Instead of one shared key, every user generates a mathematically linked Key Pair:
If Alice wants to send a secure message to Bob over the public Internet:
Industry Standard: RSA and ECC (Elliptic Curve Cryptography).
To secure the Web (HTTPS), engineers combined the best of both worlds into the TLS (Transport Layer Security) protocol: