Question: Which is the most secure way to avoid storing a password in clear text in database?
- `$encrypted = shal($password);`
- `$encrypted = crypt($password, \$salt);`
- `$encrypted = md5($password);`
- `$encrypted = password_hash($password, PASSWORD_DEFAULT);`
Answer: The correct answer of the above question is Option D:`$encrypted = password_hash($password, PASSWORD_DEFAULT);`