- var_dump: documentation ( source)
- password_hash: documentation ( source)
- hash: documentation ( source)
- password_verify: documentation ( source)
<?php
$correctPW = '34a124424f065ae13936064ab366d9';
$bad = 'be6759bc425ed7b26c177cf53af82b1ed519';
$hash = password_hash(hash('sha512', $correctPW, true), PASSWORD_BCRYPT);
var_dump(
password_verify(
hash('sha512', $bad, true),
$hash
)
);