这应该解密文件。我正在尝试找出算法,但在理解正在发生的事情时遇到了一些问题。有什么提示吗?谢谢!
localStringBuilder1 = new StringBuilder("");
localStringBuilder2 = new StringBuilder("");
Matcher localMatcher = Pattern.compile("[a-zA-z_\\-]+\\.html").matcher(paramString); //paramString is the encrypted file
localMatcher.find();
String str2 = localMatcher.group();
for (Integer localInteger1 = Integer.valueOf(0); localInteger1
.intValue() < str2.length(); localInteger1 = Integer
.valueOf(1 + localInteger1.intValue())) {
localStringBuilder2.append(1 + Math.round(str2
.codePointAt(localInteger1.intValue()) % 3));
if (localInteger1.intValue() < "fdjkhireuhsdthuirdfg".length())
localStringBuilder2.append(1 + Math
.round("fdjkhireuhsdthuirdfg".codePointAt(localInteger1
.intValue()) % 3));
}
更新:简化循环
for (int i = 0; i < str2.length(); i++) {
localStringBuilder2.append(1 + Math.round(str2
.codePointAt(i) % 3));
if (i < "fdjkhireuhsdthuirdfg".length())
localStringBuilder2.append(1 + Math
.round("fdjkhireuhsdthuirdfg".codePointAt(i) % 3));
}
你可以在这里找到完整的源代码
编辑 非常感谢 Vandey 解决了产生的字符串:“21321223331121”
然而,这并没有得到完整的答案。下一部分是(让我大吃一惊):
label249: if (localInteger2.intValue() < i);
try
{
localStringBuilder1.append((char)(Integer.parseInt(str1.substring(0 + localInteger2.intValue(), 2 + localInteger2.intValue()), 16) - Integer.parseInt(localStringBuilder2.substring(localInteger2.intValue() / 2 % localStringBuilder2.length(), 1 + localInteger2.intValue() / 2 % localStringBuilder2.length()))));
label327: localInteger2 = Integer.valueOf(2 + localInteger2.intValue());
break label249;
str3 = localStringBuilder1.toString();
}
catch (StringIndexOutOfBoundsException localStringIndexOutOfBoundsException)
{
break label327;
}