How to protect code in dll
Hi All, I want to protect the code within my dll, such that if a user tries to use reflector to view the code then the dll should not show the code for that dll. only the function names should be shown. Regards, HimanshuRegards, Himanshu Porwal
April 5th, 2011 9:10am

Hi, Thanks for the post! Please refer to here: How to protect source code from decompilation of dll In addition, please ask this question in MSDN forum. Regards, MiyaThis posting is provided "AS IS" with no warranties, and confers no rights. | Please remember to click "Mark as Answer" on the post that helps you, and to click "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
April 7th, 2011 6:13am

Himanshu, In witch langauge do you program your DLL. Because if you use .NET it can always be decomiled, the only thing that you can do is obfuscate your code(.NET obfuscator, ...). So that if you have this code. Dim strMyString as String strMyString = 5 + 5 Msgbox strMyString becomes ... Dim x1 as String x1 = 5 + 5 Msgbox x1 Kind Regards DFTIM me - TWiTTer: @DFTER
April 7th, 2011 5:25pm

Hi Daft, I am using .Net for writing the code. Also .Net obfuscation does not allows the re engineering to be on the Dll. I want to hide code displayed to user for any function. I am not sure you have used reflector or not. It you frag and drop the dll into it will show the complete code written in each and every function. I want the code to be hidden from the end user. Only function, Property and class members name should be visible. Thanks and Regards, HimanshuRegards, Himanshu Porwal
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2011 4:55pm

Himanshu, I used .NET Reflector several times to decompile .NET applications. And indeed it shows you the complete code. But you cannot prevent this only make it harder to read (obfuscator). Or write your write your dll in a other langauge like C or etc (you need to reverse asmbler code (witch is a lot harder)). Look at this post: http://social.msdn.microsoft.com/Forums/pl-PL/netfxtoolsdev/thread/a95e441d-ce5b-49d4-9f3a-e9e620bdb1d8 If you like to get more indepth information about this you can ask this on forums like. http://forum.sysinternals.com/ or the MSDN Forums. Kind Regards DFTIM me - TWiTTer: @DFTER
April 14th, 2011 5:18pm

Hi Daft, Thanks for your help. I thought there might be some other ways also to hide the code. I will try for .Net obfuscationand will let you know if I faces any problem. Regards, HimanshuRegards, Himanshu Porwal
Free Windows Admin Tool Kit Click here and download it now
April 14th, 2011 5:30pm

There is no way to prevent Reflector from opening .Net assemblies, but you make make it pointless by obfuscating your assemblies. After obfuscating, class/method/fields are renamed, inline strings in methods are encrypted, method calls are hidden, method control flow is scrambled and so on. So, anybody who use Reflector will see a lot of garbage and will not be able to make sense of most of it. Try Crypto Obfuscator which does all of the above mentioned techniques during obfuscation of your assemblies.
August 12th, 2011 2:08am

Hi Himangi, Thanks for the information. I was looking for this only. I have read about the Obfuscator but have not implemented it. I will implement it and let you know if faces any problems or issues. once again Thanks for the info. HimanshuRegards, Himanshu Porwal
Free Windows Admin Tool Kit Click here and download it now
August 12th, 2011 3:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics