I'm trying to programmatically get the key which my Chrome browser uses to encrypt its cookies. But whatever tool I consider, it appears that I need to know a service and a username (or an 'attribute' and 'value'). How can I find discover these values?
(In Chrome v11, the key is stored in the gnome keyring (I think?), and indeed, when I fetch the key using the "Passwords and Keys" GUI, it decrypts the cookies accurately.)
I've tried my best guess, running keyring get 'Chromium Safe Storage' $(whoami)
, but that outputs nothing and returns an error code of 1
. I've also tried keyring get keyring.backends.SecretService.Keyring chromium