-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON format stores multi-line string for SSH keys #226
Comments
Also, there's another problem with the generated json data. With firefox passwords the following entry is generated:
The double quote enclosing the dictionary inside "Password", also makes the Python
|
Finally, the format of the generated json is kind of convoluted. If anyone is wondering how to parse it (if those issues get fixed), you can use this:
At the same time, just to contribute a little bit more, if someone wants to parse the stdout, this regular expression (within the method) can be used:
Hope this is helpful to anyone. |
I have added a link to this issue on the Readme. Thanks for your help. |
Hi again,
I saw that when an SSH key is found, when saved in JSON format to a file, the SSH key is written as a multi-line string. JSON format does not support multi-line strings, thus failing when trying to load that data with the Python json module.
More info can be found here:
Problematic output example:
If a json.load() is executed upon that data, it will fail, rendering the feature of storing data as json kind of useless.
The text was updated successfully, but these errors were encountered: