Skip to content
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

Can't decrypt because "Dependencies of decrypt_backup and/or extract_encrypted_key are not present." #54

Open
RikPi opened this issue Jul 12, 2023 · 7 comments
Labels
inactive Waiting for more information

Comments

@RikPi
Copy link

RikPi commented Jul 12, 2023

Hi,
I installed all the required dependencies for extracting the crypt15 databases. When I try to use the following command in the CLI:
wtsexporter -a -k <key> -b ./msgstore.db.crypt15
I get the following output:
Decryption key specified, decrypting WhatsApp backup... Dependencies of decrypt_backup and/or extract_encrypted_key are not present. For details, see README.md.

I have gone through the readme some times and cannot find anything related to this error, maybe I am just not finding the correct part

Thank you :)

@KnugiHK
Copy link
Owner

KnugiHK commented Jul 12, 2023

What is the command you used to install the exporter?

@RikPi
Copy link
Author

RikPi commented Jul 12, 2023

I used both:
pip install whatsapp-chat-exporter["android_backup"] and pip install whatsapp-chat-exporter["crypt15"]

@KnugiHK
Copy link
Owner

KnugiHK commented Jul 12, 2023

Can you check if javaobj-py3 and pycryptodome are properly installed?

@RikPi
Copy link
Author

RikPi commented Jul 12, 2023

I did a pip (and pip3 just in case) install for both, but they are both already installed

@KnugiHK
Copy link
Owner

KnugiHK commented Jul 13, 2023

That's strange. The only way you get this message is either support_backup or support_crypt15 is False. And here is how the program determines if your environment supports them:

try:
    import zlib
    from Crypto.Cipher import AES
except ModuleNotFoundError:
    support_backup = False
else:
    support_backup = True
try:
    import javaobj
except ModuleNotFoundError:
    support_crypt15 = False
else:
    support_crypt15 = True

Can you run a Python (which executes the exporter script) shell and see if importing the dependency goes wrong?

import zlib
from Crypto.Cipher import AES
import javaobj

@KnugiHK KnugiHK added the inactive Waiting for more information label Oct 23, 2023
@RikPi
Copy link
Author

RikPi commented Dec 3, 2023

Hi, sorry for the long delay. I ran the commands you asked in a Python shell and got back that module 'Crypto' was not found.
I tinkered a bit and ended up uninstalling pycryptodome and crypto and reinstalling pycryptodome. This fixed it, there probably was some kind of conflict between those two.

Thanks for the support!

@Box333
Copy link

Box333 commented Dec 4, 2023

you have probably downloaded the standalone version wtsexporter.exe (8MB) and you had it in the folder you were running the command from. the real wtsexporter.exe you need is the one in your python\scripts folder. So delete or rename the 8MB one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Waiting for more information
Projects
None yet
Development

No branches or pull requests

3 participants