KnugiHK / WhatsApp-Chat-Exporter

A customizable Android and iOS/iPadOS WhatsApp database parser that will give you the history of your WhatsApp conversations in HTML and JSON. Android Backup Crypt12, Crypt14, Crypt15, and new schema supported.
https://wts.knugi.dev/
MIT License
521 stars 76 forks source link

feature request: export 64-digit encryption key #20

Closed privnote42 closed 1 year ago

privnote42 commented 1 year ago

Hello, I have a feature request. Would it be possible to output / export the 64-digit encryption key so that I can import an E2E encrypted backup?

This is the use case: I forgot my password for the E2E encrypted backup and did not save the 64-digit encryption key.

I wanted to update my phone to a new LineageOS version, so I backed up Whatsapp and then deleted all partitions. I also made a backup of the Whatsapp folder in /data/data, so I still have encrypted_backup.key as a file.

The export also works without problems, but unfortunately Whatsapp does not seem to accept this non-encrypted database; at least when I reinstalled Whatsapp, I was not offered a restore with it.

KnugiHK commented 1 year ago

Hi. Do you mean provide a way to parse the encryption key and show the key in hex form?

privnote42 commented 1 year ago

Hi, yes the output in the same form as you have to enter the key when restoring in whatsapp, i.e. as a 64-digit hex code.

KnugiHK commented 1 year ago

I added an option (-s) to the CLI for showing the hex key. I don't have the next release plan for now. You can check it out by installing the exporter with the follow command: pip install git+https://github.com/KnugiHK/Whatsapp-Chat-Exporter.git@dev

privnote42 commented 1 year ago

is working, thank you very much

KnugiHK commented 1 year ago

I will leave it open until the feature is being released.

KnugiHK commented 1 year ago

Hi @velecto1, could you please report the problem with the -s option you mentioned in https://github.com/KnugiHK/Whatsapp-Chat-Exporter/issues/9 here with details?

KnugiHK commented 1 year ago

This feature is only available in dev or message_table branch for now, and will not be released before new schema support is released.

KnugiHK commented 1 year ago

Released in 0.9.0.