汉雅星空 v0.91.26版本的 MD5 值为:fb6fa60ca638fef7705b9184d8991e21
以下内容为反编译后的 C6258.java 源代码,内容仅作参考
package dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.TfWoIkpHYt3HHHDpRgz5;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.D3xb4FRHBOMBe4Hy2ejU.ZglRyWW4cUFE2DbKLjVX.C6059;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.C6599;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.C6623;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.FhrqliGQ81gKARdaSWs8.C6127;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.I2DxizINe6JxHAQ8BeNZ.C6188;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.UZe8Zqf95mnIyU2HduvP.C6297;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.b4rNUSgJhYs93Xadombh.C6384;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.QOgyztI3PognN1fbgSC9.sa3UVVRL7vxVFuHvbUcP.C6576;
import dwrGtHm6Ix7GBKpd4ToA.QOgyztI3PognN1fbgSC9.p4lwnLDXTC6D4YR7s2W3.hfA1qHMVFlrX85t3QXpH.C7057;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.SecureRandom;
public class C6258 {
private C6576 f19352;
private boolean f19353;
private BufferedInputStream f19354;
private BufferedOutputStream f19355;
private byte[] f19356;
public C6258() {
this.f19353 = true;
this.f19352 = null;
this.f19354 = null;
this.f19355 = null;
this.f19356 = null;
}
private void m23655(byte[] bArr) {
this.f19352.mo24661(false, new C6297(bArr));
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(this.f19354));
byte[] bArr2 = null;
while (true) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
try {
break;
} catch (C6623 unused) {
return;
}
}
byte[] m22713 = C6059.m22713(readLine);
bArr2 = new byte[this.f19352.mo22929(m22713.length)];
int mo22927 = this.f19352.mo22927(m22713, 0, m22713.length, bArr2, 0);
if (mo22927 > 0) {
this.f19355.write(bArr2, 0, mo22927);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo22928 = this.f19352.mo22928(bArr2, 0);
if (mo22928 > 0) {
this.f19355.write(bArr2, 0, mo22928);
}
}
public static void m23656(String[] strArr) {
String str;
boolean z = true;
if (strArr.length < 2) {
new C6258();
System.err.println("Usage: java " + C6258.class.getName() + " infile outfile [keyfile]");
System.exit(1);
}
String str2 = strArr[0];
String str3 = strArr[1];
if (strArr.length > 2) {
str = strArr[2];
z = false;
} else {
str = "deskey.dat";
}
new C6258(str2, str3, str, z).m23658();
}
private void m23657(byte[] bArr) {
this.f19352.mo24661(true, new C6297(bArr));
byte[] bArr2 = new byte[47];
byte[] bArr3 = new byte[this.f19352.mo22929(47)];
while (true) {
try {
int read = this.f19354.read(bArr2, 0, 47);
if (read <= 0) {
try {
break;
} catch (C6623 unused) {
return;
}
}
int mo22927 = this.f19352.mo22927(bArr2, 0, read, bArr3, 0);
if (mo22927 > 0) {
byte[] m22712 = C6059.m22712(bArr3, 0, mo22927);
this.f19355.write(m22712, 0, m22712.length);
this.f19355.write(10);
}
} catch (IOException e) {
e.printStackTrace();
return;
}
}
int mo22928 = this.f19352.mo22928(bArr3, 0);
if (mo22928 > 0) {
byte[] m227122 = C6059.m22712(bArr3, 0, mo22928);
this.f19355.write(m227122, 0, m227122.length);
this.f19355.write(10);
}
}
private void m23658() {
this.f19352 = new C6576(new C6127(new C6188()));
if (this.f19353) {
m23657(this.f19356);
} else {
m23655(this.f19356);
}
try {
this.f19354.close();
this.f19355.flush();
this.f19355.close();
} catch (IOException unused) {
}
}
public C6258(String str, String str2, String str3, boolean z) {
SecureRandom secureRandom;
this.f19353 = true;
SecureRandom secureRandom2 = null;
this.f19352 = null;
this.f19354 = null;
this.f19355 = null;
this.f19356 = null;
this.f19353 = z;
try {
this.f19354 = new BufferedInputStream(new FileInputStream(str));
} catch (FileNotFoundException unused) {
System.err.println("Input file not found [" + str + "]");
System.exit(1);
}
try {
this.f19355 = new BufferedOutputStream(new FileOutputStream(str2));
} catch (IOException unused2) {
System.err.println("Output file not created [" + str2 + "]");
System.exit(1);
}
if (z) {
try {
secureRandom = new SecureRandom();
} catch (Exception unused3) {
}
try {
secureRandom.setSeed("www.bouncycastle.org".getBytes());
} catch (Exception unused4) {
secureRandom2 = secureRandom;
try {
System.err.println("Hmmm, no SHA1PRNG, you need the Sun implementation");
System.exit(1);
secureRandom = secureRandom2;
C6599 c6599 = new C6599(secureRandom, C7057.f23016);
C6384 c6384 = new C6384();
c6384.mo23919(c6599);
this.f19356 = c6384.mo23920();
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m22714 = C6059.m22714(this.f19356);
bufferedOutputStream.write(m22714, 0, m22714.length);
bufferedOutputStream.flush();
bufferedOutputStream.close();
return;
} catch (IOException unused5) {
System.err.println("Could not decryption create key file [" + str3 + "]");
System.exit(1);
return;
}
}
C6599 c65992 = new C6599(secureRandom, C7057.f23016);
C6384 c63842 = new C6384();
c63842.mo23919(c65992);
this.f19356 = c63842.mo23920();
BufferedOutputStream bufferedOutputStream2 = new BufferedOutputStream(new FileOutputStream(str3));
byte[] m227142 = C6059.m22714(this.f19356);
bufferedOutputStream2.write(m227142, 0, m227142.length);
bufferedOutputStream2.flush();
bufferedOutputStream2.close();
return;
}
try {
BufferedInputStream bufferedInputStream = new BufferedInputStream(new FileInputStream(str3));
int available = bufferedInputStream.available();
byte[] bArr = new byte[available];
bufferedInputStream.read(bArr, 0, available);
this.f19356 = C6059.m22718(bArr);
} catch (IOException unused6) {
System.err.println("Decryption key file not found, or not valid [" + str3 + "]");
System.exit(1);
}
}
}