473,386 Members | 1,803 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dotfuscator and strong names

Hi all!

I'm doing some test of obfuscation of assembly marked with the strong
name
(Fw 2.0).

Someone can tell me how does this work?
I mean: if I have an exe and a couple of dll marked w/strong name and I

obfuscate the dll when I run the exe it crashes because cannot load the
dll
cause there are problems with the strong name.

Have I to choose between the strong name and the obfuscation or there
is
something that I'm missing?

Thanks!

Aug 3 '06 #1
8 7530

Wacom ha scritto:
Hi all!
I'm really sorry for the repost :(
Excuse me.

Aug 3 '06 #2
you have to resign your dll's after obfuscation. if you are using
dotfuscator community edition shipped with VS, then you're out of luck.

Wacom wrote:
Hi all!

I'm doing some test of obfuscation of assembly marked with the strong
name
(Fw 2.0).

Someone can tell me how does this work?
I mean: if I have an exe and a couple of dll marked w/strong name and I

obfuscate the dll when I run the exe it crashes because cannot load the
dll
cause there are problems with the strong name.

Have I to choose between the strong name and the obfuscation or there
is
something that I'm missing?

Thanks!
Aug 3 '06 #3
"SharpCoderMP" <cs*******@interia.pl.NFSPMha scritto nel messaggio
you have to resign your dll's after obfuscation. if you are using
dotfuscator community edition shipped with VS, then you're out of luck.
That's what I thinked :(
I wonder why the dotfuscator don't warning about this, and I don't know why
the obfuscated assembly seems to be resigned right :(

Ok... maybe I'll do the trick using ngen in place of the offuscation.

Thanks
Aug 4 '06 #4
Huh?

You can't delaysign the assembly, obfuscate it, and then re-sign it?
I've never tried this, but I'd have thought you should be able to do
this, that's what delay-sign is for...

Even the help "obfuscating, strong-named assemblies" says:

"Strong named assemblies are digitally signed. This allows the runtime
to determine if an assembly has been altered after signing. The
signature is an SHA1 hash signed with the private key of an RSA
public/private key pair. Both the signature and the public key are
embedded in the assembly's metadata.

Since Dotfuscator modifies the assembly, it is essential that signing
occur after running the assembly through Dotfuscator. You should delay
sign the assembly during development and before Dotfuscation, then
complete the signing process afterward. See the .NET Framework
documentation for more details about delay signing assemblies. Remember
to turn off strong name validation while testing your delay signed
assemblies!"

jliu

Fabio Z wrote:
"SharpCoderMP" <cs*******@interia.pl.NFSPMha scritto nel messaggio
you have to resign your dll's after obfuscation. if you are using
dotfuscator community edition shipped with VS, then you're out of luck.

That's what I thinked :(
I wonder why the dotfuscator don't warning about this, and I don't know why
the obfuscated assembly seems to be resigned right :(

Ok... maybe I'll do the trick using ngen in place of the offuscation.

Thanks
Aug 4 '06 #5
"John Liu" <jo******@gmail.comha scritto nel messaggio
Huh?

You can't delaysign the assembly, obfuscate it, and then re-sign it?
I've never tried this, but I'd have thought you should be able to do
this, that's what delay-sign is for...
mmm... and how can this be done using VS and Dotfuscator comunity ed.?
Dotfuscator.c.e seems that don't support strong name operations.

Thanks
Aug 4 '06 #6
Dotfuscator won't re-sign the assembly for you, but there's nothing stopping
you from using sn.exe to re-sign an assembly after Dotfuscator is done with
it.
"Fabio Z" <zn*******@virgilio.itwrote in message
news:uy**************@TK2MSFTNGP05.phx.gbl...
"John Liu" <jo******@gmail.comha scritto nel messaggio
>Huh?

You can't delaysign the assembly, obfuscate it, and then re-sign it?
I've never tried this, but I'd have thought you should be able to do
this, that's what delay-sign is for...

mmm... and how can this be done using VS and Dotfuscator comunity ed.?
Dotfuscator.c.e seems that don't support strong name operations.

Thanks

Aug 4 '06 #7
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT comha scritto nel
messaggio news:%23DYNj%23%
Dotfuscator won't re-sign the assembly for you, but there's nothing
stopping you from using sn.exe to re-sign an assembly after Dotfuscator is
done with it.
And can you tell me the procedure to do this?
I mean starting from what to do in VS to the use of sn.exe?

Thanks
Aug 5 '06 #8
See http://msdn2.microsoft.com/en-us/library/ms227311.aspx for 1.1
instructions. In 2.0, the only difference would be that delay signing
should be specified via the project properties rather than via
assembly-level attributes.
"Fabio" <zn*******@virgilio.itwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT comha scritto nel
messaggio news:%23DYNj%23%
>Dotfuscator won't re-sign the assembly for you, but there's nothing
stopping you from using sn.exe to re-sign an assembly after Dotfuscator
is done with it.

And can you tell me the procedure to do this?
I mean starting from what to do in VS to the use of sn.exe?

Thanks
Aug 7 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Robbie De Sutter | last post by:
Hello, When I use the dotfuscator (Community Edition), all my delegate functions no longer work. I understand the reason why (the function in my delegate no longer exists under the name I try...
1
by: kjon | last post by:
Hi, I want to obfuscate my DLL assembly which also has a strong name. As I know that the obfuscated assembly with strong name won't work, and have tried using AssemblyDelaySign(True) and sn.exe -R...
1
by: Y S | last post by:
Hi, We are t-r-y-i-n-g to use the Obfuscator accompanying DevStudio. Before we can utilize it, we need to know what it does when you have more than a single project, both sharing a...
10
by: Darren | last post by:
OK, I'm trying to understand the need for this. If I understand correctly without this anyone can reverse engineer and obtain the source code of my application - is this correct? And this tool will...
3
by: Alan Mok | last post by:
Hi All, I am a newbie to dotfuscator. I am trying to dotfuscate my application. Everything seems ok except that when I try to run a method that has the following command ...
1
by: ker chee huar | last post by:
Hi all! i am using Dotfuscator Community Edition for encrypt my .Net assembly. How can i include all my dependancy Dll to encrypt it because my project is multi-reference project! regards,...
0
by: Fabio | last post by:
Hi all! I'm doing some test of obfuscation of assembly marked with the strong name (Fw 2.0). Someone can tell me how does this work? I mean: if I have an exe and a couple of dll marked...
2
by: mart_nl | last post by:
Hi group, I have a class library containing a Windows form. I create a dll from this project and use it in my application like so: Assembly asm =...
6
by: raylopez99 | last post by:
Anybody use Strong Name Signing? I think this is used by default for Resource files, which is one reason perhaps I can't get my resource files to work (somehow the public key is messed up, perhaps...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.