CAS-001 · Question #404
The threat abatement program manager tasked the software engineer with identifying the fastest implementation of a hash function to protect passwords with the least number of collisions. Which of…
The correct answer is C. hash = sha512(password + salt). SHA-512 with a salt (option C: hash = sha512(password + salt)) is the best choice among the options. SHA-512 produces a 512-bit digest, giving an astronomically large output space that minimizes collision probability. Adding a salt ensures that identical passwords produce…
Question
The threat abatement program manager tasked the software engineer with identifying the fastest implementation of a hash function to protect passwords with the least number of collisions. Which of the following should the software engineer implement to best meet the requirements?
Options
- Ahash = sha512(password + salt);
- Bhash = md5(password + salt);
- Chash = sha512(password + salt);
- Dhash1 = sha1(password + salt);
How the community answered
(62 responses)- A6% (4)
- B2% (1)
- C89% (55)
- D3% (2)
Explanation
SHA-512 with a salt (option C: hash = sha512(password + salt)) is the best choice among the options. SHA-512 produces a 512-bit digest, giving an astronomically large output space that minimizes collision probability. Adding a salt ensures that identical passwords produce different hashes, defeating rainbow table attacks. MD5 (option B) is disqualified because it has known practical collision vulnerabilities. SHA-1 (option D) is cryptographically broken for collision resistance and is deprecated. Options A and C are textually identical as presented; the intended correct answer is SHA-512 with a salt, which is option C. Note: for password storage in modern systems, deliberately slow algorithms like bcrypt or Argon2 are preferred over fast SHA-512, but among the choices given, SHA-512 + salt is the strongest.
Topics
Community Discussion
No community discussion yet for this question.