bertrandom / chrome-cookies-secure

Extract encrypted Google Chrome cookies for a url on a Mac or Linux
https://www.npmjs.com/package/chrome-cookies-secure
MIT License
147 stars 51 forks source link

Add Windows support #17

Closed daguej closed 4 years ago

daguej commented 4 years ago

This adds support for reading Chrome's cookie database on Windows.

On Windows, Chrome encrypts cookie values using DPAPI. Keys are automatically managed by the OS on a per-user basis. This means that generally, decryption will only work on the machine and when logged in to the user that created the DB. This is the normal situation, but decryption would fail if eg one copied the cookie file from a different computer.


I've also taken the liberty of bumping the sqlite3 and keytar dependency versions, which fixes #11 -- builds on node 10+.

daguej commented 4 years ago

@bertrandom Any chance you can give this a quick look?

I'm soon releasing a project that requires this PR, and would prefer to not have to fork this project.

bertrandom commented 4 years ago

@daguej Thanks, will rev version..

daguej commented 4 years ago

🎉 Thanks!