The following code creates an MD5 hash and then hashes it again with SHA-1 – is this secure?
$user = $_POST['username'];
$username = mysqli_real_escape_string($mysqli, $user);
$pass = md5($_POST['password']);
$password = sha1($pass);
Does this increase collision possibilities?
Are there any other ways in order to hash and be very fast in processing the password?