Hashing vs. Encryption

Difficulty: Beginner

Question

What is the difference between Hashing and Encryption?

Answer

Hashing is a one-way transformation (for passwords). Encryption is two-way and requires a key to decrypt (for sensitive data like SSNs).

Concepts covered

Hashing, Encryption, Salt, Bcrypt, AES