Verify a password in PHP

1
2
<?php
$correct= password_hash("Correct password", PASSWORD_DEFAULT);
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Password verify will check if a plain string will match a string that has been created with password_hash().

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.