clearloop/leetcode-cli

Cannot get Chrome Safe Storage password

anstadnik opened this issue · 2 comments

The following code fails with an error KeyringError::NoPasswordFound.

let ring = Entry::new("Chrome Safe Storage", "Chrome");
let pass = ring.get_password().expect("Get Password failed");

If I open seahorse, I see the relevant item (so the attribute name is correct), but I couldn't find info about the username assigned to that record.
image
Can you point me in the correct direction? I assume that the username might be wrong, but I have no idea where to check which one is used with Chrome Safe Storage.

Your system look like Linux distribution ?

Yup, I had Arch Linux.
Now I use macOS, where everything works like a charm, but I can give you more info if needed.

P.S. Thanks for your work (: