Decrypting media files
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!
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.