R
ricardoh
Gast
Weis jemand was diese Klasse macht?
Java:
public class rg
{
public static String a(String s)
{
return a(s.getBytes());
}
public static String a(byte abyte0[])
{
String s = null;
try
{
MessageDigest messagedigest = MessageDigest.getInstance(MD5);
messagedigest.update(abyte0);
s = b(messagedigest.digest());
messagedigest.reset();
}
catch(NoSuchAlgorithmException nosuchalgorithmexception)
{
// ...
}
return s;
}
public static String b(byte abyte0[])
{
boolean flag = sg.k;
StringBuilder stringbuilder = new StringBuilder(32);
int i = 0;
do
{
if(i >= abyte0.length)
break;
int j = abyte0[i] & 0xff;
if(j < 16)
stringbuilder.append("0");
stringbuilder.append(Integer.toHexString(j));
i++;
} while(!flag);
return stringbuilder.toString();
}
}