Martin:
upon further investigation and a little more understanding:
here is a php snippet:
<?php
echo "<h5>MD5</h5>";
echo hash_hmac('md5', 'The quick brown fox jumped over the lazy dog.', 'secret');
echo "<h5>SHA256</h5>";
echo hash_hmac('sha256', 'The quick brown fox jumped over the lazy dog.', 'secret');
?>
results from above snippet:
MD5
7eb2b5c37443418fc77c136dd20e859c
SHA256
9c5c42422b03f0ee32949920649445e417b2c634050833c5165704b825c2a53b
notice that hash_hmac has an additional attribute - 'secret'
also, it appears that MD5 is an older but possibly still accepted hash
see: sha256
the amazon php snippet looks like this:
// calculate HMAC with SHA256 and base64-encoding
$signature = base64_encode(hash_hmac("sha256", $string_to_sign, $private_key, True));
so QM has MD5 and B64
not sure if SHA256 is required or not - haven't yet got a 'working' example with my 'private_key'
will continue working using the php method
it's not the one i want, but once i get a better understanding and a working example, you made be able to direct me toward a complete QM function
thanks as always for your help,
Steve Trimble
Computerized Data Mgmt Inc
PO Box 13403
Maumelle, AR 72113
(501) 803-0974 09:00am - 6:00pm CST