ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Wed Oct 21, 2020 5:24 am

All times are UTC




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Aug 20, 2020 12:30 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1100
Saves location in >
Code:
C:\Users\USERNAME\AppData\LocalLow\qureate\Prison Princess\

svd is a encrypted JSON file

Snipped code for decrypt and encrypt on CSharp

Code:
        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;
        }


Top
   
PostPosted: Fri Aug 21, 2020 9:40 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 11680
Is this correct?
Code:
encryption "DecryptFinal aes_256_cbc" "w5qdv9jr7a6is98235kiqvhuhfqncacf" "ptmcyvrtk2c83yji"
get SIZE asize
log "decrypted.dat" 0 SIZE


Top
   
PostPosted: Fri Aug 21, 2020 10:43 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 1100
I think it will work.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited