whatsapp-api icon indicating copy to clipboard operation
whatsapp-api copied to clipboard

Decrypting media files

Open BolligerClement opened this issue 11 months ago • 1 comments

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!

BolligerClement avatar Jan 19 '25 06:01 BolligerClement

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.

avoylenko avatar Jan 20 '25 17:01 avoylenko