Quantcast
Channel: LeakedIn
Viewing all articles
Browse latest Browse all 5503

Potential leak of data: Simple Password

$
0
0
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: ' . […]

Viewing all articles
Browse latest Browse all 5503

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>