Click here to Skip to main content
12,957,071 members (62,813 online)
Rate this:
Please Sign up or sign in to vote.
Is it possible to put password over the code, so project can run in visual studio 2010, but any body will not be able to see the source code,


Something like that , code will be collapses and expand only after applying password.

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted 14-Sep-12 20:58pm
Updated 14-Sep-12 21:06pm
OriginalGriff 15-Sep-12 3:06am
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
footballpardeep 15-Sep-12 3:09am
OriginalGriff 15-Sep-12 3:33am
This isn't.

SHOUTING is rude on the internet.
I have removed it from your post, please do not do it again.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You can obfuscate your code so that it is harder to read, but that is about it.
@amitgajjar 15-Sep-12 3:09am
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


Although you have not specified you have web/windows application. but in case of Windows, you can obfuscate your class library so that no one can read easily.

In case of web application you can seprate your code in service. you can place some computation code in your server(but not preferable as it may slow down application response time and it will also create one dependency on your server).

So, there is no full proof security to secure your code. But you can add more and more complexity to make it hard.
footballpardeep 15-Sep-12 3:17am
thanks, i want to know about window applications,how obfuscate class library so that no one can read easily ?. If code will be complex it will difficult for me to understand later.
@amitgajjar 15-Sep-12 3:44am
There are so many tools available for obfuscation, Here is one of them :

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

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 6,924
CHill60 3,550
Maciej Los 3,312
ppolymorphe 2,120
Jochen Arndt 1,973

Advertise | Privacy | Mobile
Web01 | 2.8.170525.1 | Last Updated 15 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100