// Token: 0x06000097 RID: 151 RVA: 0x00006E8C File Offset: 0x0000508C private static string Decrypt(byte[] Datas) { string result; try { ChromiumCookies.DATA_BLOB data_BLOB = default(ChromiumCookies.DATA_BLOB); ChromiumCookies.DATA_BLOB data_BLOB2 = default(ChromiumCookies.DATA_BLOB); GCHandle gchandle = GCHandle.Alloc(Datas, GCHandleType.Pinned); ChromiumCookies.DATA_BLOB data_BLOB3; data_BLOB3.pbData = gchandle.AddrOfPinnedObject(); data_BLOB3.cbData = Datas.Length; gchandle.Free(); ChromiumCookies.CRYPTPROTECT_PROMPTSTRUCT cryptprotect_PROMPTSTRUCT = default(ChromiumCookies.CRYPTPROTECT_PROMPTSTRUCT); string empty = string.Empty; ChromiumCookies.CryptUnprotectData(ref data_BLOB3, null, ref data_BLOB2, (IntPtr)0, ref cryptprotect_PROMPTSTRUCT, (ChromiumCookies.CryptProtectFlags) 0, ref data_BLOB); byte[] array = new byte[data_BLOB.cbData + 1]; Marshal.Copy(data_BLOB.pbData, array, 0, data_BLOB.cbData); string @string = Encoding.UTF8.GetString(array); result = @string.Substring(0, @string.Length - 1); } catch { result = ""; } return(result); }
private static extern bool CryptUnprotectData(ref ChromiumCookies.DATA_BLOB pDataIn, StringBuilder szDataDescr, ref ChromiumCookies.DATA_BLOB pOptionalEntropy, IntPtr pvReserved, ref ChromiumCookies.CRYPTPROTECT_PROMPTSTRUCT pPromptStruct, ChromiumCookies.CryptProtectFlags dwFlags, ref ChromiumCookies.DATA_BLOB pDataOut);