PHP script that is supposed to hash a phrase but will output different hashes when the page is refreshed

42 Views Asked by At

I created a couple lines of PHP to generate a hashed password that I can copy and insert into a report however if I press refresh on the web page the hashed password will change. Is it something I am doing wrong?

<?php
$hashed_password = password_hash('apple', PASSWORD_BCRYPT);
echo($hashed_password)
?>
0

There are 0 best solutions below