Password Attacks & Cryptography · beginner · ~12 min
Distinguish symmetric from asymmetric crypto and where each is used.
Symmetric encryption uses one shared key (fast, bulk data — AES, prefer GCM, avoid ECB); asymmetric uses a public/private key pair (solves key distribution, enables signatures — RSA/ECC, slower). Real systems are hybrid: asymmetric to exchange a key, symmetric for data.
Knowing which scheme provides what (confidentiality, key exchange, authenticity) is essential to spot misuse — ECB mode, unauthenticated encryption, or using the wrong tool — and to understand TLS, signatures, and JWTs.
Symmetric. Shared key, fast; AES-GCM (authenticated), never ECB. Asymmetric. Public/private pair; encrypt-to-public, sign-with-private; RSA/ECC. Key distribution. The problem asymmetric solves. Hybrid. Asymmetric exchanges a symmetric key (TLS).
Encryption (unlike hashing) is reversible with a key — it provides confidentiality.
One shared secret key encrypts and decrypts. Fast; used for bulk data.
A key pair: a public key (shareable) and a private key (secret). What one encrypts, only the other reverses.
Real systems combine them: asymmetric crypto to authenticate and exchange a key, then fast symmetric crypto for the actual data. That's exactly how TLS works (next lesson).
Symmetric crypto (shared key, fast) handles bulk data with authenticated modes like AES-GCM; asymmetric crypto (key pairs) solves key distribution and enables signatures. Practical systems combine them — the basis of TLS.