Using password_hash() for Secure Password Storage in PHP


Generate a secure hash of a password using password_hash().

Source Code

$hashedPassword = password_hash("secretPassword", PASSWORD_DEFAULT);
echo $hashedPassword;
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments