WhatsApp-Chat-Exporter icon indicating copy to clipboard operation
WhatsApp-Chat-Exporter copied to clipboard

feature request: export 64-digit encryption key

Open privnote42 opened this issue 1 year ago • 5 comments

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.

privnote42 avatar Sep 03 '22 21:09 privnote42

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

KnugiHK avatar Sep 04 '22 15:09 KnugiHK

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.

privnote42 avatar Sep 04 '22 19:09 privnote42

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

KnugiHK avatar Sep 05 '22 13:09 KnugiHK

is working, thank you very much

privnote42 avatar Sep 06 '22 17:09 privnote42

I will leave it open until the feature is being released

KnugiHK avatar Sep 06 '22 17:09 KnugiHK