Reputation: 11
I have a small problem with me PHP code, I've been trying to learn about encryption and internet safety, and so I decided to try it out, my version is currently 5.4.41, the part where it doesn't work is when I type this out, as soon as it gets to it the page fails to complete. this is the code,
password_hash("password", PASSWORD_BCRYPT, 10);
pls help me.. thanks
Upvotes: 1
Views: 151
Reputation: 94662
If you are using a PHP version prior to 5.5 the password_hash()
and password_verify()
do not exist yet there is a compatibility pack available here
But upgrading to a new version of PHP would be a better idea. Like PHP7.0 or PHP7.1
Upvotes: 2