Protect C # DLL from third-party developers

Duplicate: How to protect a DLL?

I would like to protect my C # DLL from being used by third-party applications. I would like to use only MY applycation to use this DLL. How can i achieve this?

Thanks.

+3
source share
5 answers

It is simply not possible.

The entire code access security system is based on the notion that security solutions come from the user executing the code , and not from the author of the code . You, the author of the code, cannot tell your users what their security decisions are; You are a user of the service, not a user.

. , , . , , . CAS .

: , , , , , . , " DLL Guillaume, Guillaume", . , , , .

; - , , , , , . , , , , . .

, , , DLL. , . , " ". , , , , , .

, , . , EULA , , , , .

, ENTIRE, , - .

, DLL . , , , . DLL , DLL , , .

+12

internal DLL, \AssemblyInfo.cs, InternalsVisibleTo, .

+13

, , DLL.

  • / , , ( x509cert test strongname). -t , , x509cert, .

( , , .)

, CAS .NET, .

  1. DLL- ( ).

  2. , - .

+3

, . DLL, , , DLL. , DLL, , , . , . , DLL DLL. , DLL, . DLL , , .

DLL-, - DLL. . , .

( , . , .)

+1

Obfusc

0

Source: https://habr.com/ru/post/1712297/


All Articles