private void button2_Click(object sender, EventArgs e) { setEnableAllButtons(false); String inFile = textBox5.Text; String outFile = textBox6.Text; byte[] devKLic = ConversionUtils.getByteArray("52c0b5ca76d6134bb45fc66ca637f2c1"); byte[] keyFromRif = (new RAP()).getKey(this.textBox1.Text); EDAT instance = new EDAT(); instance.decryptFile(inFile, outFile, devKLic, keyFromRif); setEnableAllButtons(true); }
private void button1_Click_1(object sender, EventArgs e) { setEnableAllButtons(false); String inFile = textBox5.Text; String outFile = textBox6.Text; byte[] devKLic = ConversionUtils.getByteArray("52c0b5ca76d6134bb45fc66ca637f2c1"); // byte[] keyFromRif = getKey("ff8.rif", "act.dat", "idps"); byte[] keyFromRif = getKey(textBox2.Text, textBox3.Text, textBox4.Text); EDAT instance = new EDAT(); instance.decryptFile(inFile, outFile, devKLic, keyFromRif); setEnableAllButtons(true); Debugbox.Text += "RIF KEY = (byte)0xDA, (byte)0x7D, (byte)0x4B, (byte)0x5E, (byte)0x49, (byte)0x9A, (byte)0x4F, (byte)0x53, (byte)0xB1, (byte)0xC1, (byte)0xA1, (byte)0x4A, (byte)0x74, (byte)0x84, (byte)0x44, (byte)0x3B" + Environment.NewLine + "/n/r"; Debugbox.Text += "ACTDAT KEY =(byte)0x5E, (byte)0x06, (byte)0xE0, (byte)0x4F, (byte)0xD9, (byte)0x4A, (byte)0x71, (byte)0xBF, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x01" + Environment.NewLine; Debugbox.Text += "Byte array = 52c0b5ca76d6134bb45fc66ca637f2c1" + Environment.NewLine; SystemSounds.Beep.Play(); MessageBox.Show("Succcess check selected save folder"); }