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

How to decrypt .enc received media file from whatsapp? #526

Open
vlindberg opened this issue Oct 18, 2024 · 3 comments
Open

How to decrypt .enc received media file from whatsapp? #526

vlindberg opened this issue Oct 18, 2024 · 3 comments
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed

Comments

@vlindberg
Copy link

When I receive an image from WhatsApp I have the mediaUrl (.enc file) and mediaKey attributes. How do I get the decrypted byte array of the image?

@vlindberg
Copy link
Author

I found how to do it:

Optional<byte[]> opt = api.downloadMedia(img).get();

@vlindberg vlindberg reopened this Oct 28, 2024
@Auties00
Copy link
Owner

I found how to do it:

Optional<byte[]> opt = api.downloadMedia(img).get();

Yeah this is the correct answer

@Auties00 Auties00 added the waiting triage A maintainer acknowledged the issue, further discussion is needed label Oct 28, 2024
@Auties00
Copy link
Owner

Auties00 commented Nov 3, 2024

I found how to do it:
Optional<byte[]> opt = api.downloadMedia(img).get();

Yeah this is the correct answer

It will be likely impossible very soon.
I’m rewriting the entire network stack at https://github.com/Auties00/Leap and that uses kernel functions for tcp and udp sockets. I could take a look and check how Android does it and add support though

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed
Projects
None yet
Development

No branches or pull requests

2 participants