- var_dump: documentation ( source)
- range: documentation ( source)
- md5: documentation ( source)
<?php
$password = 'hello';
$hashed = md5($password);
var_dump('Hash to match: ' . $hashed);
class HashCracker
{
private $range;
private $length = 32;
private $cycles = 1000;
public function __construct()
{
$this->range = range('0', 'z');
}
public function runBenchmark()
{
die(var_dump($this->range));
}
}
(new HashCracker())->runBenchmark();