|
DLL for Signing WebService Requests |
SignEngine.dll is a COM accessible DLL for signing Amazon Webservice requests for the Product Advertising API.
It is written in C# and should be useful for .NET stuff as well as the old COM/OLE way of doing things.
I'll assume you know what to do with it if you are using .NET. I can't help you since I don't know much about .NET unless the information below is instructive. Also, please don't contact me with C# questions. Contrary to what providing this might imply I'm not a C# programmer. It is just a good example of what you can do if your willing to hack away at something long enough.
License Terms: Use it freely for any personal or business signing that is yours. Do not distribute it and/or sell it to others. Neither should it be used to provide signing services for others. If you want to use it for restricted purposes please contact me.
If you are using it via the old COM/OLE method you will probably need to register it using regasm.exe (search the Windows Directory).
Example: regasm.exe /codebase SignEngine.dll
It has two relevant methods:
- SignMyURL(key,url) "key" is your secret key. "url" is the REST request you want to sign. Provide the complete URL without a Timestamp.
- GetMyHash(key,url) "key" is your secret key. "url" is the section for which you want to compute the signature. It assumes you have done all the formatting. The only thing returned is the Signature value.
Some sample code which should make sense if you do any COM stuff:
key = YOUR_KEY
sha1 = ObjectCreate("SignEngine.Encoder")
signed_url = sha1.SignMyURL(key, url)
ObjectClose(sha1)