-
Notifications
You must be signed in to change notification settings - Fork 9
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
Can't get it working #10
Comments
The 28 number is an offset into the file. If I recall correctly '28' was determined experimentally. The result does contain some junk. But should mostly be valid ascii/utf8 IIRC. But it could be that the program you use get confused by the invalid bytes. Did you simply cat it? Did you try the cleanup scripts? It is not impossible they have changed the format though. It's 7 years since I did the decompilation exercise. Maybe they've added compression? I would check what |
I have just run this successfully from a fresh Colornote backup.
The original output file before the cleanup script (notes.json) is messy, but does contain JSON. What text editor are you viewing this file in? Does it have an automatic HEX mode for unrecognized binary files? |
Thanks! My bad. I thought the output should be human readable as a text file. I thought the cleanup scripts acted on things like comma's and that therefore my file should contain them. Opening the file with an editor that correctly recognizes the HEX format I see the real content. The cleanup scripts don't work though. v3 gives: "Expecting value: line 25 column 1 (char 64822)" |
I see that v2 and v2 expects the input on stdin, while v3 take the filename as an argument 🤦♂️ I don't remember much of the cleanup stuff, but I think each version corresponds to a version of the colornote format and I would expect the offset to correspond with the "version" I would see how line 25 looks. Probably some yunk that need removing |
Thanks for the help! The following works:
The output still seems to require some work to turn the output in a JSON that is easily read by other things but I'm sure I can now extract everything I need. |
2024 and this library just SAVED MY @$$ - I had to install Azul Zulu OpenJDK to get around the ridiculous security in Oracle's JRE (facepalm), but after that, jar cranked through and produced fugly json, as promised! I will work on cleaning it up, but having years of my life go up in vapor in 3 seconds - this was an amazing recovery!! Thank you @olejorgenb and crew (and @Marten-Reehorst for a post in 2023 that gave me hope this could still work!) |
November 2024. Well it worked for me, and my limited knowledge java. and with some regex cleaned up the file nicely. |
I have a backup file 1703299151437-AUTO.backup that was created today and I'm trying to decrypt it. I've downloaded the git directory and called (command followed by output)
java -jar colornote-decrypt.jar 0000 < 1703299151437-AUTO.backup > notes.json
Based on the other recently "Issue" raised by johnhe4, I also tried
java -jar colornote-decrypt.jar 0000 28 < 1703299151437-AUTO.backup > notes.json
which exited without error. However, the
notes.json
that was produced only contains hexadecimal numbers (where I believe it should have contained some human readable JSON). Anyone any idea for what I could try?The text was updated successfully, but these errors were encountered: