現在有這個加密演算法
public static String a(byte[] arg4) {
Exception v0_1;
Throwable v0_2;
GZIPOutputStream v1_2;
String v0 = null;
ByteArrayOutputStream v2 = new ByteArrayOutputStream();
try {
v1_2 = new GZIPOutputStream(((OutputStream)v2));
}
catch(Throwable v1) {
Throwable v3_1 = v1;
v1_2 = ((GZIPOutputStream)v0);
v0_2 = v3_1;
goto label_19;
}
catch(Exception v1_1) {
Exception v3 = v1_1;
v1_2 = ((GZIPOutputStream)v0);
v0_1 = v3;
goto label_17;
}
try {
v1_2.write(arg4);
v1_2.flush();
if(v1_2 == null) {
goto label_9;
}
goto label_8;
}
catch(Throwable v0_2) {
}
catch(Exception v0_1) {
try {
label_17:
throw v0_1;
}
catch(Throwable v0_2) {
}
}
label_19:
if(v1_2 != null) {
try {
v1_2.close();
}
catch(Exception v1_1) {
}
}
throw v0_2;
try {
label_8:
v1_2.close();
}
catch(Exception v1_1) {
}
label_9:
if(v2 != null) {
v0 = v2.toString("ISO-8859-1");
}
return v0;
}
怎么弄出解壓出來
public static String uncompress(String str) throws IOException {
if (str == null || str.length() == 0) {
return str;
}
ByteArrayOutputStream out = new ByteArrayOutputStream();
ByteArrayInputStream in = new ByteArrayInputStream(str.getBytes("iso-8859-1"));
GZIPInputStream gunzip = new GZIPInputStream(in);
byte[] buffer = new byte[256];
int n;
while ((n = gunzip.read(buffer)) >= 0) {
out.write(buffer, 0, n);
}
return out.toString();
} 我寫了這個一個函式解密不出來。求指導
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/130722.html
標籤:Android
上一篇:終端運行qt 會報段錯誤
下一篇:Android Studio
