문제

Is it possible to prevent any unauthorised user to access code or application in desktop application like any web application? Thanks in advance.

도움이 되었습니까?

해결책

If you want to protect your sourcecode, I would use an obfuscator like the free Eazfuscator.NET

http://www.gapotchenko.com/eazfuscator.net

UPDATE: no longer free since June 29, 2012

다른 팁

You can use the imperative PrincipalPermission or the declarative PrincipalPermissionAttribute to assert that a user meets some authorization criteria to invoke a certain method or block of code.

This resource describes how to use this kind of security. In my experience, this pattern works best (where "best" means "easiest to set up") in an ActiveDirectory environment.

http://www.ginktage.com/2010/03/role-based-security-in-net/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top