Ho trovato il seguente codice che cerca di decriptare una stringa MD5. La solita codifica che viene utilizzata per salvare le password degli utenti sul database. Funzionerà??
$chaine_car="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $car=str_split($chaine_car); $nb_car=count($car); $car[$nb_car]=""; $c1=$c2=$c3=$c4=0; $trouve=0; $motorigine="mot"; $mothashe=md5($motorigine); $avantfor=time(); for($i=0;$i<1000000000000000;$i++){ $cherche=$car[$c1].$car[$c2].$car[$c3].$car[$c4]; $cherchemd=md5($cherche); if($cherchemd==$mothashe){ $trouve=1; echo"Trouvé ! : $cherche ($mothashe : $motorigine) @ $i"; } //else{ echo "$cherche : NON ! ----"; } $c4++; if($c4==$nb_car){ $c3++; $c4=0; } if($c3==$nb_car){ $c2++; $c3=0; } if($c2==$nb_car){ $c1++; $c2=0; } if($c1==$nb_car or $trouve==1){ $i=1000000000000000000000; echo" ...FIN";} } $apresfor=time(); $duree=$apresfor-$avantfor; echo(" $duree secondes !"); ?>