Create a hash of an email address for a api call

I'm using the api to Mailchimp and have been able to get data, but now need to put it. As part of the url I need to include the hash of the email address I'm updating in Mailchimp. One of the fields is Email Address, how do I get the hash (I assume md5) and use that in a variable in the url in the post back to Mailchimp.
I'm guessing I need to use javascript, but an example would help.

Thanks
Craig Moore

Hi Craig

I would say that the easiest way to get an MD5 hash of a string in Retool is probably to use CryptoJS, in a JS query like so:



Copyable library URL: https://cdnjs.cloudflare.com/ajax/libs/crypto-js/4.0.0/crypto-js.min.js

1 Like

that did it thank you

1 Like