Detected 1 occurrence(s) of ‘\s*pass[word]+\s*[:=]\s*["'][a-z0-9\-_\!\$]+["']‘: // A higher "cost" is more secure but consumes more processing power $cost = 10; // Create a random salt $hash = password_hash($password, PASSWORD_BCRYPT, array("cost" => 10)); // Store hash in the DB $sql = "UPDATE users SET password = '$hash' WHERE id='$user_id'"; if (!mysqli_query($con, $sql)) { die('Error: ' . […]
↧