.版本 2
.支持库 dp1
bydess = 字节集_还原 (到文本 (bytes)) ' HEX解码
返回 (到文本 (解密数据 (bydess, “debugme?”, #RC4算法)))
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
public class f
{
public static String a(String paramString1, String paramString2)
{
try
{
paramString2 = Cipher.getInstance("RC4");
paramString2.init(1, new SecretKeySpec("debugme?".getBytes("GBK"), "RC4"));
paramString1 = a(paramString2.update(paramString1.getBytes("GBK")));
return paramString1;
}
catch (Exception paramString1) {}
return "";
}
public static String a(byte[] paramArrayOfByte)
{
String str1 = "";
int i = 0;
while (i < paramArrayOfByte.length)
{
String str3 = Integer.toHexString(paramArrayOfByte[i] & 0xFF);
String str2 = str3;
if (str3.length() == 1) {
str2 = '0' + str3;
}
str1 = str1 + str2;
i += 1;
}
return str1.toUpperCase();
}
}