B16f00t / whapa

WhatsApp Parser Toolset v1.59
1.11k stars 261 forks source link

Feature/documentation request: Allow decrypting using data from whatsapp web/describe format of keyfile #103

Open ReallyCoolName opened 3 years ago

ReallyCoolName commented 3 years ago

(my cat walked on the keyboard so this was posted before I wrote anything, hence the edits) I want to merge chats from 2 different phones, but have trouble extracting the keyfile without rooting. Tried various solutions that do not include root to no avail.

my last resort was attempting to use some functions from the decryption script and feed it data I got via whatsapp web, or try to reverse-engineer the keyfile format from the script, but I couldn't figure it out.

the keys can be found in the browser local storage according to this

(come to think of it, I didn't cross reference the data in the issue about encKey being KeysDecrypted[:32] and macKey being keysDecrypted[32:64] as far as I can recall, though it's been a while since I tried this approach. Since I can't figure out how to delete the issue, I'll leave it here for now, and look into it in a few hours. worst-case scenario, I just answered my own question, and hopefully it will be of use)