A Windows Tool for backing up and restoring Chrome's encrypted cookies
A change made to Chromium on 12/16/2013 introduced DPAPI to encrypt protected data including cookies and saved passwords on Windows. DPAPI generates unique encryption keys per user and domain or standalone Windows installation. If you move protected files (e.g. Cookies) to a different user account or a different domain or Windows installation, the protected data will become unusable.
This tool creates a decrypted SQLite backup file of the Cookies
file in the Chrome User Data Profile folder, using the credentials of the logged on user's profile. The tool can restore from this backup file back into a Chrome User Profile Cookies
using a different user account or domain or Windows installation, by re-encrypting the data using the other user's credentials.
- Install from chocolatey:
choco install ChromeCookieBackup
- Run the tool using the Windows user account of the source user/computer and save a backup file
- Move the
User Data
folder in its entirety to a different user account or Windows installation, or simply create a new profile on the target computer. - Run the tool on the target computer using the target user account, and restore the backup to the desired Chrome profile(s). You may map Chrome profiles from the backup file to profiles on the target computer.
- Chromium implementation of Encrypted Cookies: https://codereview.chromium.org/24734007
- DPAPI .NET Wrapper System.Security.Cryptography.ProtectedData docs: https://msdn.microsoft.com/en-us/library/system.security.cryptography.protecteddata(v=vs.110).aspx
- Visual Studio 2017
- .NET Framework 4.5.2
- System.Data.Sqlite - ADO.NET provider for SQLite (Chrome stores cookies in a SQLite database)
- Json.NET - For reading Chrome profile Preferences Json