И я уже застрял на первом этапе - расшифровке ключа, привязанного к приложению.
Код: Выделить всё
var appBoundEncKeyB64 = JObject.Parse(localState)["os_crypt"]["app_bound_encrypted_key"].ToString();
var appBoundEncKey = Convert.FromBase64String(appBoundEncKeyB64).Skip(4).ToArray();
var appBoundDecodedKey = ProtectedData.Unprotect(appBoundEncKey, null, DataProtectionScope.LocalMachine);
Код: Выделить всё
at System.Security.Cryptography.ProtectedData.Unprotect(Byte[] encryptedData, Byte[] optionalEntropy, DataProtectionScope scope)
at Common.BrowserCookieReader.ReadCookieValue(String browserName, String browserCompanyName, String cookieName, String cookieHost, String username)
System.Security.Cryptography.CryptographicException: 'Key not valid for use in specified state.'
Подробнее здесь: https://stackoverflow.com/questions/793 ... 20-cookies
Мобильная версия