I needed to get this up and running ASAP for the TradeMe api authentication so ended up taking a huge short-cut, I created a tiny php page that does the job in a couple of lines of code. Thinking, I'll come back to this and solve it properly when I have time.
Well I'm back to it and I'm still scratching my head.
I need to be able to create a sha1 hash with a shared secret and have the output in raw format http://php.net/manual/en/function.hash-hmac.php
So simple in php...
Code: Select all
hash_hmac('sha1', 'The quick brown fox jumped over the lazy dog.', 'secret', true);
I guess it was so easy with php, and easy with the Delphi cut and paste and so I find myself being equally as lazy and thinking surely this has already been done?