Protecting DLL files from use.
I have a dll which I have written that contains code for encrypting and decrypting strings, how would I go about preventing its use by someone else who say... writes another .NET application and then attempts to include the methods from that library by referencing it?
Rohit KPosted Oct 27, 2008, 3:25 AM
http://www.codeproject.com/KB/security/UB_CAS_NET.aspx
Bechir BejaouiPosted Sep 5, 2008, 1:10 PM
System.Security;
decorate your code by this attribute
[assembly:FileIOPermission(Security.Action.RequestMinimum,Unresticted.True)|SecurityPermission(SecurityAction.RequestRefuse, SkipVerification = false)]