How to encrypt dll files?
-
As you guys know Dynamic Link Libraries created in visual studio .NET can be decrypted, oooh my goodness. How can it be encrypted? Dotfuscator can do somethings, but when u encrypt your class with it,all the members of your class rename to letters and furthur useness would be horrible. Thank you in advanced. bobby877
-
As you guys know Dynamic Link Libraries created in visual studio .NET can be decrypted, oooh my goodness. How can it be encrypted? Dotfuscator can do somethings, but when u encrypt your class with it,all the members of your class rename to letters and furthur useness would be horrible. Thank you in advanced. bobby877
-
Someone told me that with .Net 2.0 its possible to compile to native code. But I don't know if he his correct. I didn't found a way to, yet. So if anybody knows, I'm interested in, too. Greetings, Ingo
ihoecken wrote:
Someone told me that with .Net 2.0 its possible to compile to native code.
No, it's not. Well, only if you're writing in unmanaged C++. Managed C++ compiles to a combination of native and managed code. There are tools out there that will compile down to Native code, but they cost a bloody fortune to buy. There is no way to encrypt the .DLL and still have it work, other than obfuscation. No matter what you do, the .DLL must be decrypted to use, even if it's done in memory. At that point, you're entire encryption scheme just defeated itself. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
Someone told me that with .Net 2.0 its possible to compile to native code. But I don't know if he his correct. I didn't found a way to, yet. So if anybody knows, I'm interested in, too. Greetings, Ingo
even in .Net 1.0 you can use NGen to compile a .Net dll to native code. This has to happen on the target machine however, since Ngen will optimize for the processor it finds, and installs the resulting image in the native image cache. Your installer script could Ngen normal dlls in a temporary location, then delete the uncompliled dlls... Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke
-
even in .Net 1.0 you can use NGen to compile a .Net dll to native code. This has to happen on the target machine however, since Ngen will optimize for the processor it finds, and installs the resulting image in the native image cache. Your installer script could Ngen normal dlls in a temporary location, then delete the uncompliled dlls... Absolute faith corrupts as absolutely as absolute power Eric Hoffer All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke
But that, of course, means that the source MSIL files would have to be on the installation CD's too! :-D You could easily stop the installer from deleting the files just by modifying the permissions on the TEMP folders. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-
As you guys know Dynamic Link Libraries created in visual studio .NET can be decrypted, oooh my goodness. How can it be encrypted? Dotfuscator can do somethings, but when u encrypt your class with it,all the members of your class rename to letters and furthur useness would be horrible. Thank you in advanced. bobby877
Well I found a software which allows to convert .Net projects to native code. It's called .Net Reactor[^] I tried it. The code is encrypted afterwards. Reflector isn't able to disassemble it. Greetings, Ingo ------------------------------ A bug in a Microsoft Product? No! It's not a bug it's an undocumented feature! -- modified at 11:27 Tuesday 7th February, 2006