Multiple choice technology security

How can we prevent dictionary attacks on password hashes ?

  1. Hashing the password twice

  2. Encrypting the password using the private key

  3. Use an encryption algorithm you wrote your self so no one knows how it works

  4. Salting the hash

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Salting adds unique random data to each password before hashing, preventing attackers from using pre-computed rainbow tables or dictionary attacks. Hashing twice or custom encryption doesn't address the core vulnerability.