nerdexam
Zend

200-710 · Question #115

When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)

The correct answer is A. The algorithm that is used for hashing passwords can change when PHP is upgraded. C. The string length of the returned hash can change over time.. See the full explanation below for the reasoning.

Question

When using password_hash() with the PASSWORD_DEFAULT algorithm constant, which of the following is true? (Choose 2)

Options

  • AThe algorithm that is used for hashing passwords can change when PHP is upgraded.
  • BThe salt option should always be set to a longer value to account for future algorithm requirements.
  • CThe string length of the returned hash can change over time.
  • DThe hash algorithm that's used will always be compatible with crypt().

How the community answered

(21 responses)
  • A
    81% (17)
  • B
    14% (3)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 200-710 Practice