olejorgenb / ColorNote-backup-decryptor

Decrypt a ColorNote backup file to export your notes (https://www.colornote.com)
MIT License
52 stars 9 forks source link

Worked, with lots of cleanup afterwards #8

Open johnhe4 opened 11 months ago

johnhe4 commented 11 months ago

Thank you for this! I tried a few of the combinations in your readme and this worked for an archive from October 2023: java -jar colornote-decrypt.jar 0000 28 < ~/Downloads/colornote-20231026.backup > ~/Downloads/notes.json

Marten-Reehorst commented 9 months ago

Hi johnhe4, great that you got it to work. What is the number 28 here? You're command does run (unlike the suggestions in the readme) but unfortunately the output is nonsense hexadecimal numbers. I take it you managed to get some human readable json?

johnhe4 commented 9 months ago

If you scrub through the readme you'll see an example claiming:

...28 is a magic offset

I tried different values and that was the one that worked for me.

The output isn't perfect but I do have json-ish text. The biggest issue was invalid characters that I removed manually by loading the resulting file in Visual Studio Code and fixing the errors.

EpicVoyage commented 9 months ago

It looks like the JSON can be cleaned up with the fixup scripts, e.g.

./ColorNote-backup-decryptor/fixup-v3 notes.json test.json