waha icon indicating copy to clipboard operation
waha copied to clipboard

[Question] [NOWEB] How to decrypt messages

Open Andrea-1976 opened this issue 11 months ago • 2 comments

Does anyone know how to decrypt the contents of a message?

In the message.any webhook for a text message there are 2 parameters: payload._data.message.encCommentMessage.encIv and payload._data.message.encCommentMessage.encPayload

When I receive an image, I get a webhook with these parameters:

payload._data.message.fileSha256 payload._data.message.jpegThumbnail payload._data.message.mediaKey payload._data.message.directPath payload._data.message.fileEncSha256

But I don't know what is the algorithm I need in order to decrypt this info into the original message or image.

If this is possible and someone has managed to do it, I would appreciate any help. Specially for JAVA.

I have the latest version of WAHA

NOWEB (2025.12.1 PLUS)

Thanks

Andrea-1976 avatar Dec 05 '25 13:12 Andrea-1976

Likely similar way how you can decrypt polls

Refs

  • https://github.com/devlikeapro/Baileys/blob/8333a25fca7fc5bf32d4a4196ea91a3895f3aa42/src/Utils/process-message.ts#L121-L150
  • https://github.com/tulir/whatsmeow/blob/9cbe80fb25a47c0039572512d06358b45ab2c0bd/msgsecret.go#L93-L114

patron:PRO

devlikepro avatar Feb 19 '26 08:02 devlikepro

https://github.com/tulir/whatsmeow/blob/9cbe80fb25a47c0039572512d06358b45ab2c0bd/msgsecret.go#L187-L202

patron:PRO

devlikepro avatar Feb 19 '26 08:02 devlikepro