Best answer

Convert 9 digit numerical value to Md5 HASH

  • 7 December 2021
  • 3 replies
  • 739 views

Userlevel 1

Hello fellow Zapiers.

Need help in converting a 9 digit numeric value to MD5 HAsh to use in the follow-up steps.

 

I have tried almost all formatting options but could not find any options for it.

 

Any help will be much appreciated.

icon

Best answer by Troy Tessalone 8 December 2021, 00:10

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +14

Hi @Armen 

You’d have to use a Code step: https://zapier.com/apps/code/help

 

CONFIG

 

RESULTS

 

Userlevel 1

thank you for that that was what I was looking for. 

 

much appreciated.

 

Userlevel 1

I just want to post the actual code here for others to copy and paste.

let crypto = require('crypto');
let Digits = inputData.Digits;
let Hash = crypto.createHash('md5').update(Digits).digest('hex');
output = [{Digits, Hash}];

 

Thank you again Troy.