Search code examples
c#dllchecksumintegrity

Software Integrity Test C# dll


I wrote a C# class Library (.dll) wish as you know does not use a Main() but I am using to be used with a Web Application and PreApplicationStart in assemblyinfo.cs gets called. How can I do a software integrity test or do a internal check sum or the dll to make sure it has not change using HMAC SHA or SHA sum? I've done this with c program but not sure how with C# library.


Solution

  • Apparently this was just a misunderstanding what .NET provides as mechanism to verify a dynamic library link file (DLL). Thanks for the comments. I will close this question.

    This article is a bit older but got me the answer I was looking for as I am uitilizing GAC and assembly in web application.

    http://msdn.microsoft.com/en-us/library/vstudio/xwb8f617%28v=vs.100%29.aspx