nerdexam
CompTIA

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…

Enterprise Security

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)
  • A
    6% (4)
  • B
    2% (1)
  • C
    89% (55)
  • D
    3% (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

#password hashing#SHA-512#salt#hash functions

Community Discussion

No community discussion yet for this question.

Full CAS-001 Practice