You're going to have to provide a better description of what you're trying to achieve. A DLL is just a file so you can encrypt the bytes it contains just like any other. Of course, you then won't be able to use them as executables from an application. What exactly are you trying to achieve and why?