By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,948 Members | 1,975 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,948 IT Pros & Developers. It's quick & easy.

How to hide code of .NET dll [aspnet + c#]

P: n/a
I have found few days ago that .NET dll can be reversed to view all source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,

Jul 11 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use an
intermediate byte code rather than being fully compiled. If you did not know
this, you're not likely to need to hide your code from anyone. In fact, the
best way to defend yourself against competition is to stay ahead of the
competition. Anyone that is copying your code is already behind you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"YASER WAHEED" <YASER WA****@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...
>I have found few days ago that .NET dll can be reversed to view all source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,

Jul 11 '06 #2

P: n/a
Sorry to jump in here, but this triggered a thought. Isn't there an option
to compile to native code rather than IL?

Assuming I haven't just made up that feature in my own private world...
would that be more secure than the compile to IL (I mean from the casual
hacker)?

Steve
"Kevin Spencer" <uc*@ftc.govwrote in message
news:eZ*************@TK2MSFTNGP05.phx.gbl...
If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use an
intermediate byte code rather than being fully compiled. If you did not
know this, you're not likely to need to hide your code from anyone. In
fact, the best way to defend yourself against competition is to stay ahead
of the competition. Anyone that is copying your code is already behind
you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"YASER WAHEED" <YASER WA****@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...
>>I have found few days ago that .NET dll can be reversed to view all source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,


Jul 11 '06 #3

P: n/a
Jim
Take a look at the "How to secure the dotnet code" thread below, as it seems
to be covering the same thing.

Jim
"Steve Barnett" <no****@nodomain.comwrote in message
news:OU**************@TK2MSFTNGP04.phx.gbl...
Sorry to jump in here, but this triggered a thought. Isn't there an option
to compile to native code rather than IL?

Assuming I haven't just made up that feature in my own private world...
would that be more secure than the compile to IL (I mean from the casual
hacker)?

Steve
"Kevin Spencer" <uc*@ftc.govwrote in message
news:eZ*************@TK2MSFTNGP05.phx.gbl...
>If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use an
intermediate byte code rather than being fully compiled. If you did not
know this, you're not likely to need to hide your code from anyone. In
fact, the best way to defend yourself against competition is to stay
ahead of the competition. Anyone that is copying your code is already
behind you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"YASER WAHEED" <YASER WA****@discussions.microsoft.comwrote in message
news:F6**********************************@microso ft.com...
>>>I have found few days ago that .NET dll can be reversed to view all
source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,



Jul 11 '06 #4

P: n/a
Hi Steve,

Yes, you can compile to native machine code. And that is harder to hack.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
"Steve Barnett" <no****@nodomain.comwrote in message
news:OU**************@TK2MSFTNGP04.phx.gbl...
Sorry to jump in here, but this triggered a thought. Isn't there an option
to compile to native code rather than IL?

Assuming I haven't just made up that feature in my own private world...
would that be more secure than the compile to IL (I mean from the casual
hacker)?

Steve
"Kevin Spencer" <uc*@ftc.govwrote in message
news:eZ*************@TK2MSFTNGP05.phx.gbl...
>If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use an
intermediate byte code rather than being fully compiled. If you did not
know this, you're not likely to need to hide your code from anyone. In
fact, the best way to defend yourself against competition is to stay
ahead of the competition. Anyone that is copying your code is already
behind you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"YASER WAHEED" <YASER WA****@discussions.microsoft.comwrote in message
news:F6**********************************@microso ft.com...
>>>I have found few days ago that .NET dll can be reversed to view all
source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,



Jul 11 '06 #5

P: n/a
How can we compile .NET code into native machine code instead of IL. ?

thanks

"Kevin Spencer" wrote:
Hi Steve,

Yes, you can compile to native machine code. And that is harder to hack.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
"Steve Barnett" <no****@nodomain.comwrote in message
news:OU**************@TK2MSFTNGP04.phx.gbl...
Sorry to jump in here, but this triggered a thought. Isn't there an option
to compile to native code rather than IL?

Assuming I haven't just made up that feature in my own private world...
would that be more secure than the compile to IL (I mean from the casual
hacker)?

Steve
"Kevin Spencer" <uc*@ftc.govwrote in message
news:eZ*************@TK2MSFTNGP05.phx.gbl...
If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use an
intermediate byte code rather than being fully compiled. If you did not
know this, you're not likely to need to hide your code from anyone. In
fact, the best way to defend yourself against competition is to stay
ahead of the competition. Anyone that is copying your code is already
behind you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"YASER WAHEED" <YASER WA****@discussions.microsoft.comwrote in message
news:F6**********************************@microsof t.com...
I have found few days ago that .NET dll can be reversed to view all
source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,


Jul 12 '06 #6

P: n/a
Jim
You can't compile c# .net code into native code using Visual Studio. Its
simply not possible.

But if you use a third party tool such as those offered by
www.remotesoft.com or www.pvlog.com they will take your IL code and
transform it into native machine code.

It is possible to ngen the code with VS, but you will still have all the
metadata intact, which probably does not solve what you are trying to
achieve.

HTH

Jim.

"YASER WAHEED" <YA*********@discussions.microsoft.comwrote in message
news:9D**********************************@microsof t.com...
How can we compile .NET code into native machine code instead of IL. ?

thanks

"Kevin Spencer" wrote:
>Hi Steve,

Yes, you can compile to native machine code. And that is harder to hack.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

What You Seek Is What You Get.
"Steve Barnett" <no****@nodomain.comwrote in message
news:OU**************@TK2MSFTNGP04.phx.gbl...
Sorry to jump in here, but this triggered a thought. Isn't there an
option
to compile to native code rather than IL?

Assuming I haven't just made up that feature in my own private world...
would that be more secure than the compile to IL (I mean from the
casual
hacker)?

Steve
"Kevin Spencer" <uc*@ftc.govwrote in message
news:eZ*************@TK2MSFTNGP05.phx.gbl...
If the computer can read it, so can you. You can reverse-engineer any
software. .Net code is similar to Java in that both technologies use
an
intermediate byte code rather than being fully compiled. If you did
not
know this, you're not likely to need to hide your code from anyone. In
fact, the best way to defend yourself against competition is to stay
ahead of the competition. Anyone that is copying your code is already
behind you.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Salad Alchemist

Big thicks are made up of lots of little thins.
"YASER WAHEED" <YASER WA****@discussions.microsoft.comwrote in
message
news:F6**********************************@microso ft.com...
I have found few days ago that .NET dll can be reversed to view all
source
code.

I have used Dotfuscator but it only renames variables etc.

I want to hide code.

Please reply with some concrete solution.

thanks in advance

with regards,





Jul 12 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.