![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Thread-Topic: API to access loaded assembly hash thread-index: AcUU3OXeYcfE4F62R/mwDVi1SMcIgQ== X-WBNR-Posting-Host: 70.113.22.13 From: "=?Utf-8?B?U3lsdmFpbg==?=" <Sylvain (AT) discussions (DOT) microsoft.com Subject: API to access loaded assembly hash Date: Thu, 17 Feb 2005 02:39:03 -0800 Lines: 11 Message-ID: <3211D764-E2EC-454A-A067-D46F6451E742 (AT) microsoft (DOT) com MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Newsgroups: microsoft.public.dotnet.security NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29 Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.security:3759 X-Tomcat-NG: microsoft.public.dotnet.security 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). |
#3
| |||
| |||
|
|
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== X-WBNR-Posting-Host: 70.113.22.13 From: "=?Utf-8?B?U3lsdmFpbg==?=" <Sylvain (AT) discussions (DOT) microsoft.com Subject: API to access loaded assembly hash Date: Thu, 17 Feb 2005 02:39:03 -0800 Lines: 11 Message-ID: <3211D764-E2EC-454A-A067-D46F6451E742 (AT) microsoft (DOT) com MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Newsgroups: microsoft.public.dotnet.security NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29 Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.security:3759 X-Tomcat-NG: microsoft.public.dotnet.security 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). |
#4
| |||
| |||
|
|
From: "William Stacey [MVP]" <staceywREMOVE (AT) mvps (DOT) org References: <3211D764-E2EC-454A-A067-D46F6451E742 (AT) microsoft (DOT) com h3$YIigFFHA.3136 (AT) TK2MSFTNGXA02 (DOT) phx.gbl Subject: Re: API to access loaded assembly hash Date: Fri, 18 Feb 2005 17:34:49 -0500 Lines: 67 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.224 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.224 Message-ID: <OqxkhsgFFHA.1296 (AT) TK2MSFTNGP10 (DOT) phx.gbl Newsgroups: microsoft.public.dotnet.security NNTP-Posting-Host: 24.247.172.74.bay.mi.chartermi.net 24.247.172.74 Path: TK2MSFTNGXA02.phx.gbl!cpmsftngxa10.phx.gbl!TK2MSFT FEED02.phx.gbl!TK2MSFTNGP0 |
|
Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.dotnet.security:9141 X-Tomcat-NG: microsoft.public.dotnet.security 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.) -- William Stacey, MVP http://mvp.support.microsoft.com ""Shawn Farkas [MS]"" <shawnfa (AT) online (DOT) microsoft.com> wrote in message news:h3$YIigFFHA.3136 (AT) TK2MSFTNGXA02 (DOT) phx.gbl... 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== X-WBNR-Posting-Host: 70.113.22.13 From: "=?Utf-8?B?U3lsdmFpbg==?=" <Sylvain (AT) discussions (DOT) microsoft.com Subject: API to access loaded assembly hash Date: Thu, 17 Feb 2005 02:39:03 -0800 Lines: 11 Message-ID: <3211D764-E2EC-454A-A067-D46F6451E742 (AT) microsoft (DOT) com MIME-Version: 1.0 Content-Type: text/plain; charset="Utf-8" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft CDO for Windows 2000 Content-Class: urn:content-classes:message Importance: normal Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0 Newsgroups: microsoft.public.dotnet.security NNTP-Posting-Host: TK2MSFTNGXA03.phx.gbl 10.40.1.29 Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFT NGXA03.phx.gbl Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.dotnet.security:3759 X-Tomcat-NG: microsoft.public.dotnet.security 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). |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |