Click here to Skip to main content
15,886,518 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi guys
I'm developer and create web application with Asp.net MVC and use publish to upload project output in web server.
How to encrypt all dll files in bin folder before publish project
Posted
Updated 24-Jul-15 7:37am
v2
Comments
[no name] 24-Jul-15 13:47pm    
What is it that you think encrypting DLLs on a web server are going to do for you? Before you could use them you would have decrypt them.....
Wendelius 24-Jul-15 14:06pm    
That's an extremely good question.

1 solution

You can't encrypt executables - they need to be decrypted before they are loaded, so it just isn't practical, especially in a web environment.

You could obfuscate them - google will help you there - but it probably isn't needed provided your site security is up to scratch anyway. Remember that server code (and that includes all your DLL files) is executed on the server and never gets anywhere near the client. So you are much better off putting effort into ensuring that your server file system is well locked down - which you need anyway to protect the key you would have to use to decrypt the DLLs - rather than pending significant time protecting something that is not user accessible anyway.
 
Share this answer
 

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