예제 #1
0
        // Token: 0x06000098 RID: 152 RVA: 0x00005284 File Offset: 0x00003484
        private static string pmethod_69(string str_0, string str_1)
        {
            int    num   = 12;
            string text  = "v10";
            string text2 = "DPAPI";
            string empty = string.Empty;
            string s     = File.ReadAllText(str_0).FromJSON().tmethod_322("os_crypt").tmethod_322("encrypted_key").gmethod_333(false);
            string s2    = Encoding.Default.GetString(Convert.FromBase64String(s)).Substring(text2.Length);

            byte[] key   = Class_69.DecryptBlob(Encoding.Default.GetBytes(s2), DataProtectionScope.CurrentUser, null);
            byte[] bytes = Encoding.Default.GetBytes(str_1.Substring(text.Length, num));
            return(Class_28.Decrypt(Encoding.Default.GetBytes(str_1.Substring(num + text.Length)), key, bytes));
        }
예제 #2
0
        // Token: 0x06000097 RID: 151 RVA: 0x00005218 File Offset: 0x00003418
        public static string lmethod_68(string str_0, string str_1)
        {
            string text = string.Empty;
            string result;

            try
            {
                if (str_0.StartsWith("v10"))
                {
                    text   = Class_25.pmethod_69(str_1, str_0);
                    result = text;
                }
                else
                {
                    text   = Class_69.DecryptBlob(str_0, DataProtectionScope.CurrentUser, null).Trim();
                    result = text;
                }
            }
            catch
            {
                result = text;
            }
            return(result);
        }
예제 #3
0
 // Token: 0x060001AE RID: 430 RVA: 0x0000E99B File Offset: 0x0000CB9B
 public static string DecryptBlob(string EncryptedData, DataProtectionScope dataProtectionScope, byte[] entropy = null)
 {
     return(Encoding.UTF8.GetString(Class_69.DecryptBlob(Encoding.Default.GetBytes(EncryptedData), dataProtectionScope, entropy)));
 }