Problem in PHP/MYSQL crypt salt/hashing password
Get the solution ↓↓↓$salt = "\$5\$rounds=5000\$" . "bajojepicak" . $username . "\$";
$hash = crpyt($password, $salt);
$insertuserquery = "INSERT INTO players (username, hash, salt, email) VALUES ('" . $username . "', '" . $hash . "', '" . $salt . "', '" . $email . "');";
mysqli_query($con, $insertuserquery) or die("6: Insert player query failed");
echo "0";
I am learning and trying to SALT / HASH my password and i get an error
Fatal error: Uncaught Error: Call to undefined function crpyt() in C:\xampp\htdocs\sqlconnect\register.php:58 Stack trace: #0 {main} thrown in C:\xampp\htdocs\sqlconnect\register.php on line 58
Is there someone who can help me figure out what is wrong or what is happening? If you need more code, i'll provide.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: uncaught error: call to undefined function mysqli_connect()
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.