- md5: documentation ( source)
<?php
function md5Reverse($hash) : Generator {
$stringGenerator = stringGenerator();
foreach($stringGenerator as $string) {
if(md5($string) === $hash){
yield $string;
}
}
}
function stringGenerator(): Generator {
$state = '';
yield $state;
}
echo md5('');