[GH-ISSUE #128] Error -3 while decompressing data: incorrect header check #117

Open
opened 2026-02-25 20:34:41 +03:00 by kerem · 14 comments
Owner

Originally created by @SW33TSHOT on GitHub (Jul 25, 2021).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/128

Starting to decrypt...
[e] An error has ocurred decrypting 'C:\Users\Hardik\Desktop\007\WhatsApp\Databases\msgstore-2021-07-23.1.db.crypt14' - Error -3 while decompressing data: incorrect header check
[e] An error has ocurred decrypting 'C:\Users\Hardik\Desktop\007\WhatsApp\Databases\msgstore-2021-07-24.1.db.crypt14' - Error -3 while decompressing data: incorrect header check
[e] An error has ocurred decrypting 'C:\Users\Hardik\Desktop\007\WhatsApp\Databases\msgstore.db.crypt14' - Error -3 while decompressing data: incorrect header check
[i] Decryption completed
#125

Originally created by @SW33TSHOT on GitHub (Jul 25, 2021). Original GitHub issue: https://github.com/B16f00t/whapa/issues/128 Starting to decrypt... [e] An error has ocurred decrypting 'C:\Users\Hardik\Desktop\007\WhatsApp\Databases\msgstore-2021-07-23.1.db.crypt14' - Error -3 while decompressing data: incorrect header check [e] An error has ocurred decrypting 'C:\Users\Hardik\Desktop\007\WhatsApp\Databases\msgstore-2021-07-24.1.db.crypt14' - Error -3 while decompressing data: incorrect header check [e] An error has ocurred decrypting 'C:\Users\Hardik\Desktop\007\WhatsApp\Databases\msgstore.db.crypt14' - Error -3 while decompressing data: incorrect header check [i] Decryption completed #125
Author
Owner

@SW33TSHOT commented on GitHub (Jul 28, 2021):

@B16f00t ??

<!-- gh-comment-id:888153105 --> @SW33TSHOT commented on GitHub (Jul 28, 2021): @B16f00t ??
Author
Owner

@B16f00t commented on GitHub (Jul 29, 2021):

You have a not valid key for that backup or you have a different offset #96, #113, #120

<!-- gh-comment-id:889329079 --> @B16f00t commented on GitHub (Jul 29, 2021): You have a not valid key for that backup or you have a different offset #96, #113, #120
Author
Owner

@SW33TSHOT commented on GitHub (Aug 1, 2021):

i put valid key but every time same error occurred!
please help me

is there any other salutation.

<!-- gh-comment-id:890473385 --> @SW33TSHOT commented on GitHub (Aug 1, 2021): i put valid key but every time same error occurred! please help me is there any other salutation.
Author
Owner

@B16f00t commented on GitHub (Aug 2, 2021):

Are you sure it is a valid key?

<!-- gh-comment-id:891148572 --> @B16f00t commented on GitHub (Aug 2, 2021): Are you sure it is a valid key?
Author
Owner

@SW33TSHOT commented on GitHub (Aug 13, 2021):

i am 100% sure put valid key !
@B16f00t

<!-- gh-comment-id:898208930 --> @SW33TSHOT commented on GitHub (Aug 13, 2021): i am 100% sure put valid key ! @B16f00t
Author
Owner

@B16f00t commented on GitHub (Aug 23, 2021):

If you follow this thread #113, maybe @ElDavoo can solve your problem.
Be careful when extracting the Key because if you are not root the key can change.

<!-- gh-comment-id:903532547 --> @B16f00t commented on GitHub (Aug 23, 2021): If you follow this thread #113, maybe @ElDavoo can solve your problem. Be careful when extracting the Key because if you are not root the key can change.
Author
Owner

@khalidco commented on GitHub (Aug 30, 2021):

I am trying to know if the key file is identical for both crypt12 and crypt14. If you install the latest version of WA and restore from old crypt12, the App will not convert the db to crypt14.
The decryption works for old crpt12 db, but not for old crypt14 db. Are the key file different for each?!

<!-- gh-comment-id:908327715 --> @khalidco commented on GitHub (Aug 30, 2021): I am trying to know if the key file is identical for both crypt12 and crypt14. If you install the latest version of WA and restore from old crypt12, the App will not convert the db to crypt14. The decryption works for old crpt12 db, but not for old crypt14 db. Are the key file different for each?!
Author
Owner

@ElDavoo commented on GitHub (Aug 30, 2021):

no.

<!-- gh-comment-id:908350922 --> @ElDavoo commented on GitHub (Aug 30, 2021): no.
Author
Owner

@khalidco commented on GitHub (Aug 30, 2021):

Can you elaborate? ☺
Is it possible to use the key file associated with crypt12 to decrpt a crypt14 db at all?
I read somewhere that changing the offsets may work.

<!-- gh-comment-id:908404004 --> @khalidco commented on GitHub (Aug 30, 2021): Can you elaborate? ☺ Is it possible to use the key file associated with crypt12 to decrpt a crypt14 db at all? I read somewhere that changing the offsets may work.
Author
Owner

@ElDavoo commented on GitHub (Aug 30, 2021):

the key is always the same, unless it changed for other reasons. you need to use recent versions of programs to have updated offsets

<!-- gh-comment-id:908468319 --> @ElDavoo commented on GitHub (Aug 30, 2021): the key is always the same, unless it changed for other reasons. you need to use recent versions of programs to have updated offsets
Author
Owner

@khalidco commented on GitHub (Sep 8, 2021):

I registered again using an emulator and pulled a different key file!
The decryption process still fails..
I think I am using the last updated version of the script. Installing the pycrypto and pycrypto dome was failing due to vcvar...bat and was later fixed by getting an MSI version of the binary. However, it gives run errors for some odd reason.
Regards..

<!-- gh-comment-id:915290526 --> @khalidco commented on GitHub (Sep 8, 2021): I registered again using an emulator and pulled a different key file! The decryption process still fails.. I think I am using the last updated version of the script. Installing the pycrypto and pycrypto dome was failing due to vcvar...bat and was later fixed by getting an MSI version of the binary. However, it gives run errors for some odd reason. Regards..
Author
Owner

@mrmc-mc commented on GitHub (Dec 12, 2021):

same error

[e] An error has ocurred decrypting '/home/mc/Desktop/msgstore.db.crypt14' -  Error -3 while decompressing data: incorrect header check


OS : Kali linux
key and database are same

<!-- gh-comment-id:991945828 --> @mrmc-mc commented on GitHub (Dec 12, 2021): same error ``` [e] An error has ocurred decrypting '/home/mc/Desktop/msgstore.db.crypt14' - Error -3 while decompressing data: incorrect header check ``` OS : Kali linux key and database are same
Author
Owner

@Frischid commented on GitHub (Feb 14, 2022):

Had the same problem, but decrypting worked with https://github.com/ElDavoo/WhatsApp-Crypt14-Decrypter/blob/master/decrypt14.py
After comparing the offsets, I got whacipher.py working by changing the offset in line 79 to data = db_data[190:] (notice: 190 instead of 191)
Hope this can help someone

<!-- gh-comment-id:1038910106 --> @Frischid commented on GitHub (Feb 14, 2022): Had the same problem, but decrypting worked with https://github.com/ElDavoo/WhatsApp-Crypt14-Decrypter/blob/master/decrypt14.py After comparing the offsets, I got whacipher.py working by changing the offset in line 79 to `data = db_data[190:]` (notice: 190 instead of 191) Hope this can help someone
Author
Owner

@ElDavoo commented on GitHub (Feb 14, 2022):

Basically in the database header you have the WhatsApp version, whose length often changes.
Example:
"2.21.24.22" => 11 bytes => offset=191
"2.22.3.77" => 10 bytes => offset=190
"2.22.5.7" => 9 bytes => offset=189

So yeah using a fixed offset won't work.

<!-- gh-comment-id:1038940789 --> @ElDavoo commented on GitHub (Feb 14, 2022): Basically in the database header you have the WhatsApp version, whose length often changes. Example: "2.21.24.22" => 11 bytes => offset=191 "2.22.3.77" => 10 bytes => offset=190 "2.22.5.7" => 9 bytes => offset=189 So yeah using a fixed offset won't work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whapa#117
No description provided.