Question: 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);`

Answer: The correct answer of the above question is Option D:`$encrypted = password_hash($password, PASSWORD_DEFAULT);`