Help with HMAC-MD5 for webhook response in Make

Hi! I’m new to Make and I need to set up a webhook response that requires an HMAC-MD5 signature using my secret key.

Situation:

A payment system sends a webhook to my scenario.

To acknowledge it, I need to return a response containing an HMAC-MD5 signature.

The signature is calculated based on certain data (e.g., order number, amount, etc.) and my secret key.

Questions:

1. How can I generate an HMAC-MD5 signature with a secret key in Make for a webhook response?

2. How do I include this signature in the webhook response so the payment system accepts it as valid?

3. Are there any example formulas or steps for doing this in Make?

I would really appreciate a working example or guidance on how to do this correctly.

Hi @Viacheslav_Moroz,

Welcome! HMAC md5 is not something you see often anymore, it is has some flaws. Are you sure it is not SHA256?

Make has a built in md5() function, but it does not accept a key. (the SHA256 function does!). So if you need to calculate the HMAC md5 has, the best course of action is to use the code module in this setup:

What code you’ll should use, I’ll leave up to you.

Cheers,
Henk

Welcome to the Make community!

By any chance is your service Binance, Binance, Binance Futures, or Alibaba Cloud OSS?

If yes, your answer might already be in those previous discussions.

@samliew

1 Like