Skip to main content

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
NetTellerID12345
CMID54321
MetadataMetadata
HashTimeStamp04/11/19 14:11:24
SharedSecretSharedSecret

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.