-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
.enc files instead of pictures #1449
Comments
Remote files are now encrypted. To get image content, use message.getMediaContent() from master in my fork. |
Sorry.don't understand well. I use your master. Which layer will I have to Thorsten Fröhlich
|
Just to explain something regarding the [email protected]. this is a xmpp Thorsten Fröhlich
|
You can edit your top layer.py and implement:
You can see more or less this code in cli/layer.py |
asyncore.loop(timeout=1.0, count=10, use_poll=True) Is this linke to this issue? |
I really don't kniw what I have to do @jlguardi . i insert the code:
in layer: /usr/local/lib/python2.7/dist-packages/yowsup2-2.4.102-py2.7.egg/yowsup/layers/protocol_media/layer.py but of course it fails :( |
@thundergreen Do not edit layers if you aren't sure about what are you doing. Just edit your top level layer. For instance cli/layer.py or sendclient/layer.py. |
Hi all, i have problms to get images decrypted: 2016-04-03 22:46:02,358 DEBUG Session: Received image message Message: 2016-04-03 22:46:00,823 DEBUG yowsup.layers.axolotl.layer: SOme ideas how to fix this? @jlguardi I don't really understand what u mean with the top level layers :( |
how can i fix this @jlguardi ? where do i have to outz in what? will you fix this anyway in your brnach? then i would wait for the commit. LG |
+1 |
i'm still getting that error with the current revision.
i'm using this code in transwhat and it looks like media.isEncrypted() returns False although the media is clearly encrypted. Is there anything I could do to fix this? |
You might use some parts of https://github.com/jlguardi/yowsup in folder layers/protocol_media/protocolentities/ I think this might help. EDIT: |
Thank you. But I can't see how that would make media.isEncrypted() return True as it should. |
I think 1aa1c55 of this PR implements your requested methods... |
worked fine for me! Thanks!!! |
not clear abt mediaKey and cryptKeys ... can somebody help me understand it .. where i can find those data |
Could somebody please clearly wrap up what needs to be do to get the image instead of a link to file.enc? Thank you in advance for your efforts. |
@pabloruan0710 which solution did you use for decrypted .enc file to media ?? |
I did not use any solution so far. I am trying to find one, but so far I have not found anything that would be working from me / or I did not implement them right. I tried to replace files from different forks mentioned in various issues and now I am back to stock transwhat 0.2.2 + latest yowsup2. |
@o--- is it work to upload send media and receive media on transwat 0.2.2 ? |
Hello Guys, I received every type files in my code using getMediaContent(), implement this three function in layers/protocol_media/protocolentities/message_media_downloadable.py: Use this import and CRIPTKEYS in final of image: After, add functions:
Now, in layer use getMediaContent() for save image.
In message_media_downloadable_image.py:
In message_media_downloadable_document.py:
In message_media_downloadable_audio.py:
Try @albaizzz and comment with you feedback. ** Sorry, my english is bad :D |
Thanks pabloruan0710. My imports look a bit different in message_media_downloadable.py and when I changed them, I was getting No module name khdfv3. I am also not sure how do you want me to implement in layer and in which layer? /yowsup/layers/protocol_media/layer.py `from yowsup.layers import YowLayer, YowLayerEvent, YowProtocolLayer class YowMediaProtocolLayer(YowProtocolLayer):
` |
What version python_axolotl your use? 0.1.35 ? @o--- |
I seem to be on 0.1.39. |
The module issue mentioned above was a typo error. |
Please, where I can find the refkey value? Thanks |
@pabloruan0710 Thanks for your post. |
Is anyone knows how to get the refkey from axolotl.db? Thank you |
Hi, is there any update? do you know this post: |
https://mmi257.whatsapp.net/d/PXKOdaO6aYNlpuSrfKcUkVcBMY4/AsbU-IMXLMhk2-TeFaR6VL89IlF7bOGvtyr-vjAR3FLS.enc
I'm using latest commit
The text was updated successfully, but these errors were encountered: