Code: Select all
C:\Users\USERNAME\AppData\LocalLow\qureate\Prison Princess\
svd is a encrypted JSON file
Snipped code for decrypt and encrypt on CSharp
Code: Select all
public byte[] Encrypt(byte[] binData)
{
RijndaelManaged rijndaelManaged = new RijndaelManaged();
rijndaelManaged.Padding = PaddingMode.Zeros;
rijndaelManaged.Mode = CipherMode.CBC;
rijndaelManaged.KeySize = 256;
rijndaelManaged.BlockSize = 128;
byte[] rgbKey = new byte[0];
byte[] rgbIV = new byte[0];
rgbKey = Encoding.UTF8.GetBytes("w5qdv9jr7a6is98235kiqvhuhfqncacf");
rgbIV = Encoding.UTF8.GetBytes("ptmcyvrtk2c83yji");
ICryptoTransform transform = rijndaelManaged.CreateEncryptor(rgbKey, rgbIV);
MemoryStream memoryStream = new MemoryStream();
CryptoStream cryptoStream = new CryptoStream(memoryStream, transform, CryptoStreamMode.Write);
cryptoStream.Write(binData, 0, binData.Length);
cryptoStream.FlushFinalBlock();
return memoryStream.ToArray();
}
public static byte[] Decrypt(byte[] binData)
{
RijndaelManaged rijndaelManaged = new RijndaelManaged();
rijndaelManaged.Padding = PaddingMode.Zeros;
rijndaelManaged.Mode = CipherMode.CBC;
rijndaelManaged.KeySize = 256;
rijndaelManaged.BlockSize = 128;
byte[] rgbKey = new byte[0];
byte[] rgbIV = new byte[0];
rgbKey = Encoding.UTF8.GetBytes("w5qdv9jr7a6is98235kiqvhuhfqncacf");
rgbIV = Encoding.UTF8.GetBytes("ptmcyvrtk2c83yji");
ICryptoTransform transform = rijndaelManaged.CreateDecryptor(rgbKey, rgbIV);
byte[] array = new byte[binData.Length];
new CryptoStream(new MemoryStream(binData), transform, CryptoStreamMode.Read).Read(array, 0, array.Length);
return array;
}