cancel
Showing results for 
Search instead for 
Did you mean: 

Ability to create an MD5 hash

It would be very handy to be able to create an MD5 hash from a string. I am working with a few API's (eg: Mailchimp) that require an MD5 hash for various functions. 

Status: New
Comments
martinav
Community Champion

Seems that this would be pretty cheap to do.  Unless, of course, licensing is involved.  How about getting this moving?

GKS
Frequent Visitor

i'm working with stripe and would like to validate webhook signature, which requires hmac hash

https://stripe.com/docs/webhooks/signatures#verify-official-libraries

 

this is critical to many secure connections

sjenkinsdc
New Member

+1

MichelH
Advocate V

Asked to make a API flow that deals with AWS. 

Need to makes hashes to sign my requests.

Still need for a lot of functions in power automate.

OzgurKarabenli
Frequent Visitor

I am trying to create a custom connector, and I need 

hash_hmac('sha256', ‘API Key’, ‘secret’) to send within the JSON.

mizsei
Advocate I

@OzgurKarabenli, unfortunatelly there is no ideal option for that.

 

I have a workaround for it. I created a php script which creates the hash:

    function sha3512($string) {
        return strtoupper(hash("sha3-512", $string));
    }

    $postBody = file_get_contents('php://input');
    $params = json_decode($postBody);

    $hash = sha3512($params->source);
    print $hash;

You can run the php script from flow with HTTP request action. Put the original text in the body:

{
  "source": "The original text which hash you need"
}

The response body will contain the the hash.

 

Unfortunatelly it's not a safe solution, as you send the original text/secret keys through the internet.

 

We are really waiting for the correct solution.

OzgurKarabenli
Frequent Visitor

Thank you @mizsei 

I found my way but it would be nice to include this functionality.

Have a great day!

Fjalar
Advocate I

Another perhaps far fetched and wild solution would be to use Power Automate Desktop for this single act and incorporate that in the Power Automate flow. There you can invoke python, powershell or vbscript for this task.... but this might require extra licences which is not optimal.

 

Fjalar_0-1620305916369.png

 

Lucian
Advocate II

Now I have reached the point when I have to create an MD5 hash of a string... and since 4 years still no solution?... 😞

maksii
Regular Visitor

@Lulu PowerAutomate extended with Custom Code components(currently in Preview) that allow using 

using System.Security.Cryptography;

 

Just checked with my connector and I'm able to generate sha1 signature for my request on the fly.
Quick code example posted at Function to encrypt hash(sha512, sha1, sha256, MD5... - Power Platform Community (microsoft.com)
And you may also check @ValentinGasenko custom connector that covers the same hashing functionality DynamicSadFun/PowerAutomate-HashConnector: This custom feature gives you the ability to hash (encryp...