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
584 stars 85 forks source link

[FEATURE] E2E encrypted iCloud backup support #84

Open FiloSottile opened 7 months ago

FiloSottile commented 7 months ago

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

/Users/filippo/Library/Mobile Documents/57T9237FN3~net~whatsapp~WhatsApp/Accounts/XXXXXXXXXXXXX/backup/ChatStorage.sqlite.enc

I imagine this can be decrypted with the 64 character E2E key. It would be nice to add support to WhatsApp-Chat-Exporter.

KnugiHK commented 7 months ago

You mean iCloud Advanced Data Protection or the WhatsApp built-in E2E encryption?

FiloSottile commented 7 months ago

ADP is transparent from a macOS client. ChatStorage.sqlite.enc is encrypted by WhatsApp's built-in E2E encryption.

KnugiHK commented 7 months ago

Thanks! Will look into it when I have access to Mac.

laky commented 1 week ago

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?