[GH-ISSUE #115] Zlib.compress takes atmost 2 arguments(3 used) #52

Closed
opened 2026-03-02 03:59:42 +03:00 by kerem · 3 comments
Owner

Originally created by @Donylz on GitHub (Mar 26, 2024).
Original GitHub issue: https://github.com/ElDavoo/wa-crypt-tools/issues/115

Originally assigned to: @ElDavoo on GitHub.

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

Originally created by @Donylz on GitHub (Mar 26, 2024). Original GitHub issue: https://github.com/ElDavoo/wa-crypt-tools/issues/115 Originally assigned to: @ElDavoo on GitHub. 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
kerem 2026-03-02 03:59:42 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ElDavoo commented on GitHub (Apr 1, 2024):

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

<!-- gh-comment-id:2030545477 --> @ElDavoo commented on GitHub (Apr 1, 2024): > 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
Author
Owner

@ElDavoo commented on GitHub (Apr 1, 2024):

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

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

<!-- gh-comment-id:2030564325 --> @ElDavoo commented on GitHub (Apr 1, 2024): > The tests can reproduce it, but I can't.. let me figure it out... oh, the wbits parameter is only available in py3.11+
Author
Owner

@ElDavoo commented on GitHub (Apr 1, 2024):

fixed by 702219e

<!-- gh-comment-id:2030572286 --> @ElDavoo commented on GitHub (Apr 1, 2024): fixed by 702219e
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/wa-crypt-tools#52
No description provided.