Fix Chrome's problem when a password is mis-encrypted #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
Chrome, at least on Linux, has a frequent problem. A password gets mis-encrypted, this happens. But instead of just losing that one password, Google Chrome fails to display passwords in its settings and fails to push them into the Google account when syncing. As a result, the passwords are still there, but as soon as one loses the repo for some reason (like a reinstall or even enabling a KDE/Gnome wallet) - poof, they are gone!
I was at a loss for a solution, but I found this utility which was nearly ready for it. "Nearly" beacuse it crashed with an exception upon encountering a mis-encrypted password.
My changes:
Note that, when using rewrite_passwords, the user still has to copy "Login Data" into the Chrome config directory manually. I did this to ensure that one knows what one is doing. The procedure was only tested once, and so a backup is essential if it fails. (If the routine finds an existing "Login Data" file in the current directory, it stops to avoid overwriting it).
For avoidance of doubt:
I would appreciate a merge because I'd like to post links to this workaround on forums where people complain about this issue.