How to Generate Hash Example
The Hash is computed using the SHA-1 algorithm. The NetTellerID, CMID, Metadata, HashTimeStamp, and the SharedSecret are concatenated, and the Hash is computed using the resulting ASCII bytes.
Example Concatenation
note
The "HashTimeStamp" format "mm/dd/yy HH:mm:ss" must be used when calculating the Hash.
The string values must be concatenated in this order:
varNetTellerID + varCMID + varMetadata + varHashTimeStamp + varSharedSecret| NetTellerID | 12345 |
|---|---|
| CMID | 54321 |
| Metadata | Metadata |
| HashTimeStamp | 04/11/19 14:11:24 |
| SharedSecret | SharedSecret |
The result of the above would be the following values:
"12345" + "54321" + "Metadata" + "04/11/19 14:11:24" + "SharedSecret"Resulting string:
"1234554321Metadata04/11/19 14:11:24SharedSecret"Resulting SHA-1 Hash:
"8532460CC8C4C54A285491EfC0596DD0D0814660"
note
The SharedSecret will be assigned by EPS. It must be stored securely in the customer's systems so that it can be used to calculate the Hash. It must never appear as part of the data in the POST.