Any example for Security of .Net Desktop application
-
26-09-2019 - |
문제
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.
제휴하지 않습니다 StackOverflow