Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.IO;
- using System.Runtime.Serialization.Formatters.Binary;
- using System.Security.Cryptography;
- using System.Text;
- namespace BSW_Decoder
- {
- class Program
- {
- static void Main(string[] args)
- {
- BinaryFormatter binaryFormatter = new BinaryFormatter();
- FileStream fs = File.Open("ILYCS.bsw", FileMode.Open);
- using (RijndaelManaged rijndaelManaged = new RijndaelManaged())
- {
- ICryptoTransform decryptor = rijndaelManaged.CreateDecryptor(Encoding.ASCII.GetBytes("C_H8A#R(L0I!E-09V3O]L)/9P)-E390+"), Encoding.ASCII.GetBytes("8charlie7volpe87"));
- byte[] buffer = (byte[])binaryFormatter.Deserialize(fs);
- using (FileStream outStream = File.Open("ILYCS.bsw.json", FileMode.Create, FileAccess.Write)){
- using (StreamWriter sw = new StreamWriter(outStream))
- {
- using (CryptoStream cryptoStream = new CryptoStream(new MemoryStream(buffer), decryptor, CryptoStreamMode.Read))
- {
- sw.Write(new StreamReader(cryptoStream).ReadToEnd());
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement