LinkedIn PHP Skill Quiz Assessment Answers

Which is the most secure way to avoid storing a password in clear text in database?

Latest Update on 30th December, 2021 by Certification Course Answers

Which is the most secure way to avoid storing a password in clear text in database?

  1. $encrypted = shal($password);
  2. $encrypted = crypt($password, \$salt);
  3. $encrypted = md5($password);
  4. $encrypted = password_hash($password, PASSWORD_DEFAULT);

Correct Answer:

  • $encrypted = password_hash($password, PASSWORD_DEFAULT);

Latest Updates

No posts found in this category.