10-27-2017, 06:28 PM

I'm trying to crack passwords on hashcat but this is the algorithm in php and I'm not sure how I can use this in hashcat:

function pass2($password, $id) {

$key = "r2chYO214w>1a32";

$hash1 = sha1($password, true);

$hash2 = $hash1 ^ sha1($id . $key . sha1($hash1, true), true);

return base64_encode($hash2);

}

So my question is how exactly do I get to crack passwords on hashcat using this algorithm, please help.

function pass2($password, $id) {

$key = "r2chYO214w>1a32";

$hash1 = sha1($password, true);

$hash2 = $hash1 ^ sha1($id . $key . sha1($hash1, true), true);

return base64_encode($hash2);

}

So my question is how exactly do I get to crack passwords on hashcat using this algorithm, please help.