Ejemplo n.º 1
0
        // Token: 0x0600025E RID: 606 RVA: 0x0001243C File Offset: 0x0001063C
        public static string DecryptWithKey(byte[] encryptedData, byte[] MasterKey)
        {
            byte[] array = new byte[12];
            Array.Copy(encryptedData, 3, array, 0, 12);
            string result;

            try
            {
                byte[] array2 = new byte[encryptedData.Length - 15];
                Array.Copy(encryptedData, 15, array2, 0, encryptedData.Length - 15);
                byte[] array3 = new byte[16];
                byte[] array4 = new byte[array2.Length - array3.Length];
                Array.Copy(array2, array2.Length - 16, array3, 0, 16);
                Array.Copy(array2, 0, array4, 0, array2.Length - array3.Length);
                Class32 @class  = new Class32();
                string  @string = Encoding.UTF8.GetString(@class.method_0(MasterKey, array, null, array4, array3));
                result = @string;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
                result = null;
            }
            return(result);
        }