pub fn decode_browser(
local_state_json: &str,
cookie_blob: Option<&[u8]>,
master_key: &[u8],
) -> Result<Vec<StoreResult>, CliError>Expand description
Decode the browser cookie key from Local State JSON, optionally decrypting a
v10/v20 cookie blob.
Extracts os_crypt.encrypted_key, recovers the 32-byte AES cookie key via the
master key, and (when cookie_blob is given) AES-GCM-decrypts the v10/v20
value. A wrong/absent master key surfaces as a Locked result naming the
blob’s master-key GUID — never a guessed cookie.