I'm using Qc3CalculateHash to calculate an MD5 Hash. The sample program
uses QDCXLATE to translate from EBCDIC to ASCII, then uses CVTHC to convert
the hash to hex to DSPLY.

The website that I'm talking to gives an example to try and calculate:

The "Salt" value is mJpSl0hTtf71gdV6kAdf

The value to hash is HCO-LAKEW-938^123456^1424480303^12.24^USD

So I try to hash

I get this:


The web example gets this:


Here is their sample code

HMAC-MD5(transaction-key, "x_login^x_fp_sequence^x_fp_

This website gets a different result!

I've tried the other hash types for the API, none of them match.

Code used here.....


Any ideas what I'm doing wrong?

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].