ElDavoo / wa-crypt-tools

Manage WhatsApp .crypt12, .crypt14 and .crypt15 files.
GNU General Public License v3.0
635 stars 80 forks source link

Zlib.compress takes atmost 2 arguments(3 used) #115

Closed Donylz closed 7 months ago

Donylz commented 8 months ago

I'm was trying to reencrypt the decrypted db using a reference crypt14. The reference file is the same which i decrypted. While on the compress step, it says that zlib.compress takes atmost two arguments, on line 81. I checked and found there were 3args. Deleting the 3rd arg successfully created the crypt14 file but it doesn't get recognized by WhatsApp while trying to restore. I did not append the last two digitsg my phone number though. Is it just a different zlib that I'm using? What's the recommended way to reencrypt? I also tried to paste unencrypted file in the databases folder but Whatsapp doesn't recognize it and says no backup found. Thanks

ElDavoo commented 7 months ago

it says that zlib.compress takes atmost two arguments,

The tests can reproduce it, but I can't.. let me figure it out...

I did not append the last two digitsg my phone number though.

You should

What's the recommended way to reencrypt?

None at the moment

ElDavoo commented 7 months ago

The tests can reproduce it, but I can't.. let me figure it out...

oh, the wbits parameter is only available in py3.11+

ElDavoo commented 7 months ago

fixed by 702219e