Signing assemblies

  • Thread starter Janiek Buysrogge
  • Start date
J

Janiek Buysrogge

Hi,

In my ActiveX component, which is written in .NET, I use a couple of
GUI libraries I found on the net, with nicer group boxes and buttons.

For using .NET assemblies as ActiveX components you must register them
for COM and then add them to the GAC (I'm sure many people know this)

I can sign my own assemblies before I add them with gacutil, but what
about these dll's I don't have the source of ? I can't sign these and
GAC only accepts strong named dll's.

Any advice is welcome,

JB
 
B

Brian Gideon

JB,

You can use the IL round tripping technique.

ildasm yourassembly.dll /out=yourassembly.il
ilasm yourassembly.il /res=yourassembly.res /key=yourkey.snk /dll

Basically what's happening is you decompile the assembly to an IL
source file using ildasm then you recompile with ilasm while also
specifying a key file.

Brian
 
N

Noah Sham

So what your saying is that if I have someones assembly that is not strongly
named I can just disassemble the exe/dll and reassemble with my own key?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top