[GH-ISSUE #86] Issue with whacipher during decryption #77

Closed
opened 2026-02-25 20:34:36 +03:00 by kerem · 4 comments
Owner

Originally created by @notarq on GitHub (Jan 25, 2021).
Original GitHub issue: https://github.com/B16f00t/whapa/issues/86

OS: Linux
Python: 3.8.5

Ran python3 whapa-gui.py and got an error. Fixed with
pip3 install pycryptodome and replaced from Crypto.Cipher import AES to from Cryptodome.Cipher import AES in libs/whacipher.py

After loading crypt12 db and key in GUI, during decryption I get the following error:
[i] Starting to decrypt...
[e] An error has ocurred decrypting '/media/veracrypt1/msgstore.db.crypt12' - Error -3 while decompressing data: invalid code lengths set

Originally created by @notarq on GitHub (Jan 25, 2021). Original GitHub issue: https://github.com/B16f00t/whapa/issues/86 OS: Linux Python: 3.8.5 Ran python3 whapa-gui.py and got an error. Fixed with `pip3 install pycryptodome` and replaced `from Crypto.Cipher import AES` to `from Cryptodome.Cipher import AES` in libs/whacipher.py After loading crypt12 db and key in GUI, during decryption I get the following error: [i] Starting to decrypt... [e] An error has ocurred decrypting '/media/veracrypt1/msgstore.db.crypt12' - Error -3 while decompressing data: invalid code lengths set
kerem closed this issue 2026-02-25 20:34:36 +03:00
Author
Owner

@B16f00t commented on GitHub (Jan 28, 2021):

I don't understand why you modify the code. Use the version with the specified libraries.
You only have to install the requirements: pip3 install -r ./doc/requirements.txt

<!-- gh-comment-id:768922064 --> @B16f00t commented on GitHub (Jan 28, 2021): I don't understand why you modify the code. Use the version with the specified libraries. You only have to install the requirements: pip3 install -r ./doc/requirements.txt
Author
Owner

@notarq commented on GitHub (Jan 30, 2021):

Receiving the same error without any changes in scripts and having installed all required packages

[i] Starting to decrypt...
[e] An error has ocurred decrypting '/media/veracrypt1/msgstore.db.crypt12' -  Error -3 while decompressing data: invalid code lengths set

Key is from /data/data/com.whatsapp/files/

<!-- gh-comment-id:770215173 --> @notarq commented on GitHub (Jan 30, 2021): Receiving the same error without any changes in scripts and having installed all required packages ``` [i] Starting to decrypt... [e] An error has ocurred decrypting '/media/veracrypt1/msgstore.db.crypt12' - Error -3 while decompressing data: invalid code lengths set ``` Key is from /data/data/com.whatsapp/files/
Author
Owner

@B16f00t commented on GitHub (Feb 7, 2021):

Ok, I'll check it

<!-- gh-comment-id:774742526 --> @B16f00t commented on GitHub (Feb 7, 2021): Ok, I'll check it
Author
Owner

@B16f00t commented on GitHub (Feb 28, 2021):

Give a try the new version, if you continue to have problems, the key is not valid for that backup.

<!-- gh-comment-id:787464921 --> @B16f00t commented on GitHub (Feb 28, 2021): Give a try the new version, if you continue to have problems, the key is not valid for that backup.
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#77
No description provided.