Click here to Skip to main content
15,885,216 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Is there a way to open and view code of an encrypted DLL of .Net? Does it require any software to open this, if so, could you please mention some of them?
Posted

In order to view the plain content of an encrypted file you have first to decrypt it, of course.
On the decrypted DLL code you might then use the ildasm tool[^] to see the IL code.
 
Share this answer
 
If a DLL is "properly" encrypted - as in the file has been passed through DES or similar encryption with a proper key - you cannot read the contents except with the appropriate key. That is the whole idea of encryption!

But that is extremely rare - because it is very difficult to use the file legitimately. I've never seen a case.
Most DLL's are not protected by encryption - they are obfuscated instead, which is a process of making the code harder to read while still being fully executable. These can be viewed, but the code may not be easy to follow.

Either way, trying to view the code is almost certainly in breach of copyright - or it wouldn't be protected in the first place - so we probably wouldn't help you if we could!

Why are you trying to do this?
 
Share this answer
 
Comments
thesarath 6-Dec-14 0:56am    
I need to open a DLL to check the code. I opened it with many applications by which I can see the classes and methods but I cant view code inside each method. Each method have an attribute [MethodImpl(MethodImplOptions.NoInlining)]
Is there a way to view the code inside methods?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900