- $encrypted = shal($password);
- $encrypted = crypt($password, \$salt);
- $encrypted = md5($password);
- $encrypted = password_hash($password, PASSWORD_DEFAULT);
Correct Answer:
- $encrypted = password_hash($password, PASSWORD_DEFAULT);
Which is the most secure way to avoid storing a password in clear text in database?
Correct Answer:
Latest Updates
No posts found in this category.