0.0.2 • Published 1 month ago

node-red-contrib-whatsapp-media-decrypt v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

NodeRed Whatsapp Media Decrypt module

project inspired by node-red-contrib-whatsapp-link, while imageMessage is received from the node, still would want to get the image for further processing.

This project is used to decrypt whatsapp encrypted media file "file.enc" download from url.

To Use

put the image message in msg.message.imageMessage as follow.

{
  "url": "url of the file.enc file, <https://mmg.whatsapp.net/o1/...>",
  "mimetype": "image/jpeg",
  "fileLength": "1234567",
  "fileEncSha256": "hash of encrypted file in base64",
  "mediaKey": "decryption key"
}

If the object is straight coming from node-red-contrib-whatsapp-link, it should all be available

Result is stored at msg.imageMessageBuffer as Buffer

If you chain it with node-red-contrib-image-tools, you should be able to check the picture in viewer node.

TODO

  • to support more types of media, such as video type etc...

Support

If you like this project a lot, you can buy some food for my dogs in Patreon

0.0.2

1 month ago

0.0.1

1 month ago