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 2:19am

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 6th, 2011 11:20pm

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 10:28am

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 9:56am

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 10:21am

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 10:33am

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

Other recent topics Other recent topics