public string string_14; public static string smethod_1(string string_0) { if (string_0 == " ") { return " "; } StringBuilder builder = new StringBuilder(); for (int i = 0; i < string_0.Length; i++) { builder.Append((char)(string_0[i] - '\x0004')); } return builder.ToString(); } public static string smethod_20(string string_0, string string_1, string string_2) { RijndaelManaged managed = new RijndaelManaged { Mode = CipherMode.CBC, Padding = PaddingMode.PKCS7, KeySize = 0x80, BlockSize = 0x80 }; byte[] inputBuffer = Convert.FromBase64String(string_0); byte[] bytes = Encoding.UTF8.GetBytes(string_1); byte[] destinationArray = new byte[0x10]; int length = bytes.Length; if (length > destinationArray.Length) { length = destinationArray.Length; } Array.Copy(bytes, destinationArray, length); managed.Key = destinationArray; string_2 = string_2.Substring(0, 0x10); byte[] buffer4 = Encoding.UTF8.GetBytes(string_2); managed.IV = buffer4; byte[] buffer5 = managed.CreateDecryptor().TransformFinalBlock(inputBuffer, 0, inputBuffer.Length); return Encoding.UTF8.GetString(buffer5); } private void button2_Click(object sender, EventArgs e) { string str15 = Application.StartupPath + @"\Settings\dictionary.dat"; StreamReader reader5 = new StreamReader(str15); this.string_14 = reader5.ReadToEnd(); reader5.Close(); this.string_14 = smethod_1(smethod_1(this.string_14)); this.string_14 = smethod_20(this.string_14, "hijklmnopqrstuvwxyzabcdefg", "uvwxyzabcdefghijklmnopqrst"); richTextBox1.Text = string_14; }
相应的加密程序应该怎么写啊
这个是我从一个软件里面提取的