Jack, it looks like you're close to having an RPG solution. Using iconv()
for EBCDIC to ASCII conversion was one key. Just to be clear, both your
"key" and your "data" must be converted to ASCII before calling
We went through this a couple months ago. Very similar scenario. We needed
an RPG "hash" procedure which mimics the PHP hash_hmac() function.
Understand that Qc3CalculateHash() supports the following encryption
MD5 c 1
SHA1 c 2
SHA256 c 3
SHA384 c 4
SHA512 c 5
So I'd recommend creating a SINGLE procedure which has the same parameters
as the PHP hash_hmac() function.
Note that hash_hmac() converts the hash to lower case, by default.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2021 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
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.