DLL for Signing WebService Requests
Home

 

 

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:

 

        Some sample code which should make sense if you do any COM stuff:

 url = "http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=YOUR_ID&AssociateTag=YOUR_TAG&Operation=ItemSearch&SearchIndex=Books&Title=Hello&ItemPage=1&Version=2009-01-14&ResponseGroup=Small,ItemAttributes,AlternateVersions"

key = YOUR_KEY

sha1 = ObjectCreate("SignEngine.Encoder")

signed_url = sha1.SignMyURL(key, url)

ObjectClose(sha1)