Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Security / February 2005

Tip: Looking for answers? Try searching our database.

API to access loaded assembly hash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Sylvain - 17 Feb 2005 10:39 GMT
Hi,

I'm not able to find any API to retrieve at runtime the hash of an assembly.

1/ is there any existing API (I might not have looked in the correct
namespaces/classes) ?

2/ if not, why is'nt there any ? any security implication ? is it planned to
have one in .Net 2.0 ?

Note: I know that I can compute the hash manually (using interop or not).
"Shawn Farkas [MS]" - 18 Feb 2005 22:23 GMT
There is no API to access this information in v1.x or v2.0 of the
framework.  Out of curiousity, what is it that you want to do with the hash?

-Shawn
http://blogs.msdn.com/shawnfa  
--  
This posting is provided "AS IS" with no warranties, and confers no rights.


Note:  
For the benefit of the community-at-large, all responses to this message
are best directed to the newsgroup/thread from which they originated.
--------------------
> Thread-Topic: API to access loaded assembly hash
> thread-index: AcUU3OXeYcfE4F62R/mwDVi1SMcIgQ==
[quoted text clipped - 30 lines]
>
> Note: I know that I can compute the hash manually (using interop or not).
William Stacey [MVP] - 18 Feb 2005 22:34 GMT
Hi Shawn.  BTW, Shawn shows a native way to get that info, IIRC, on his
blog.  One reason I have wanted that info before is to just a do a quick
runtime check that it is *not all zeros (i.e. someone changed it to delayed
signed and set assem to skip verification checking.)

Signature

William Stacey, MVP
http://mvp.support.microsoft.com

> There is no API to access this information in v1.x or v2.0 of the
> framework.  Out of curiousity, what is it that you want to do with the hash?
[quoted text clipped - 37 lines]
> >
> > Note: I know that I can compute the hash manually (using interop or not).
"Shawn Farkas [MS]" - 26 Feb 2005 01:07 GMT
Yep ... the link you're talking about is here:
http://blogs.msdn.com/shawnfa/archive/2005/01/26/361109.aspx

-Shawn
http://blogs.msdn.com/shawnfa  
--  
This posting is provided "AS IS" with no warranties, and confers no rights.


Note:  
For the benefit of the community-at-large, all responses to this message
are best directed to the newsgroup/thread from which they originated.
--------------------
> From: "William Stacey [MVP]" <staceywREMOVE@mvps.org>
> References: <3211D764-E2EC-454A-A067-D46F6451E742@microsoft.com>
<h3$YIigFFHA.3136@TK2MSFTNGXA02.phx.gbl>
> Subject: Re: API to access loaded assembly hash
> Date: Fri, 18 Feb 2005 17:34:49 -0500
[quoted text clipped - 11 lines]
> NNTP-Posting-Host: 24.247.172.74.bay.mi.chartermi.net 24.247.172.74
> Path:
TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP10.phx.gbl
> Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.security:9141
> X-Tomcat-NG: microsoft.public.dotnet.security
[quoted text clipped - 54 lines]
> > > Note: I know that I can compute the hash manually (using interop or
> not).

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.