whapa icon indicating copy to clipboard operation
whapa copied to clipboard

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

Open ReallyCoolName opened this issue 3 years ago • 0 comments

(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)

ReallyCoolName avatar May 28 '21 04:05 ReallyCoolName