How to generate an md5 hash of the combined string using javascript? [duplicate]

  checksum, html, javascript, md5, php

Here is the thing.

Step 1:
I have User ID, App ID, and a Security Key.

internalUserID = User123
appID = 9145
securityKey = 54dbf08d625158c6d7b055928d6ac0cc

I want to generate an md5 hash of the combined string using javascript’s md5 function.

Step 2:
Then concatenate the first 10 characters of the md5 hash. Also make sure the Checksum is lowercase.

Step3:
Combine them all 3 into one to create a unique ID.

internalUserID + “-” + appID + “-” + checkSum

Source: Ask PHP

LEAVE A COMMENT