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

Decrypting media files #314

Open
BolligerClement opened this issue Jan 19, 2025 · 1 comment
Open

Decrypting media files #314

BolligerClement opened this issue Jan 19, 2025 · 1 comment

Comments

@BolligerClement
Copy link

Hello, project works great, thank you ever so much, it's a lot of fun. But I'm having difficulty decrypting the .enc file (MP4 files, specifically) that I download from the "direct path" that we obtain from the downloadmedia endpoint. I've tried everything I can think of.
I know it can be done because I can see the full base64 for videos in the sessions/mssage_log.txt file. But I just can't figure out how to do it locally on my client machine where I download the .enc file.
Any advice would be fantastic.
Kindly, and thanks again!

@avoylenko
Copy link
Collaborator

Might be not possible, but check this out:
https://github.com/pedroslopez/whatsapp-web.js/blob/f56d25f1c4cca15cb708b3e8b5532584c4bdf572/src/structures/Message.js#L470

This might be a good starting point for further analyses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants