jlguardi / yowsup

The python WhatsApp library
http://www.openwhatsapp.org
GNU General Public License v3.0
42 stars 23 forks source link

Not work decrypt image any more #101

Open pablokere opened 7 years ago

pablokere commented 7 years ago

I downloaded last master code and the file jpeg (decrypted from .enc extension) is not a valid file. How can I help with this issue?

brunodeandrade commented 7 years ago

Same here, jpeg is not a valid file. :|

cinatic commented 7 years ago

yep not working :/ to bad

cinatic commented 7 years ago

i had the wrong cryptKeys (they are different for images and video). i can confirm it works

suryatejreddy commented 6 years ago

@cinatic where to get the 'refkey' used during decryption? Is it the media_enc_hash sent along with the message?

cinatic commented 6 years ago

Check the pull requests there is one with the encryption included but you have to manually merge it

suryatejreddy commented 6 years ago

@cinatic can you provide a link to the pull request? I can't seem to find it. Thanks for the help.

cinatic commented 6 years ago

i am not sure which one it was but here you have two which looks very promising to me:

https://github.com/tgalal/yowsup/pull/2209 https://github.com/tgalal/yowsup/pull/2336

as you can see the encryption is added e.g. here: https://github.com/tgalal/yowsup/pull/2336/commits/326ef8dee2deca742c1be8f6f9ed02f47e9c6662

I would suggest to checkout this changes and compare and add the changes manually