-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] E2E encrypted iCloud backup support #84
Comments
You mean iCloud Advanced Data Protection or the WhatsApp built-in E2E encryption? |
ADP is transparent from a macOS client. ChatStorage.sqlite.enc is encrypted by WhatsApp's built-in E2E encryption. |
Thanks! Will look into it when I have access to Mac. |
I'd love this as well! @FiloSottile, did you find some solution here? And how can you find the WhatsApp encryption key to use to read this file? |
+1 |
The WhatsApp encryption key is derived from the password or the generated key they provide you. It's unclear the format of the encrypted data, I don't think it is specified anywhere. Might need to reverse engineer WhatsApp or hook it with Frida to see exactly what it is doing. |
I have already tried it, it's not a 64 bit key |
First, 64 byte key, and I did say derive. That is there's an algorithm (which we don't know what it is), that transforms the secret (password or generated key) into a decryption key. |
Regrettably, the key problem is that if icloud backup is turned on, the original files will not be obtained |
I'm not sure I understand. As OP stated you can access and copy (download) the encrypted backups. It's just a matter of deriving the decryption key from password/generated key and performing the decryption. But unfortunately at the moment these are two unknowns. I do recall that the E2EE backups also involving an OPRF, so it might be that the decryption key is stored on WhatsApp servers. |
Thanks |
I couldn't get the backup to appear in |
Three thoughts:
|
Back up through your phone and view from it |
Just that's how I did it |
If an iOS client enables end-to-end encrypted backups, the chats are not stored in device backups anymore, but only in iCloud.
From a Mac it's very convenient to access the encrypted iCloud backup at
I imagine this can be decrypted with the 64 character E2E key. It would be nice to add support to WhatsApp-Chat-Exporter.
The text was updated successfully, but these errors were encountered: