import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class NumCrack implements Operazioni {
System.
out.
println("Inserire l'hash da crackare:");
String HashToCrack
= myInput.
readLine();
System.
out.
println("Partire dal numero:");
int ifrom
= Integer.
parseInt(myInput.
readLine());
System.
out.
println("E finire con il numero:");
int ito
= Integer.
parseInt(myInput.
readLine());
boolean ris = false;
for(int k = ifrom;k<ito;k++){
mdEnc.update(s.getBytes(), 0, s.length());
try {
if(md5.equals(HashToCrack)){
System.
out.
println("L'hash " + HashToCrack
+ " corrisponde al numero " + s
);
ris = true;
break;
}
}
}
if(ris == false)
System.
out.
println("L'hash " + HashToCrack
+ " non corrisponde a nessun numero del range scelto!");
}
}