PROTECTING DLL FILES FROM USE.

James Smith

Total Post:48

Points:336
Posted by  James Smith
C# 
C#
 1405  View(s)
Ratings:
Rate this:
I have a dll which I have written that contains code for encrypting and decrepting strings, how would I do about preventing its use by someone else who say writes another .net application and then attempts to include the method from that library for referncing it?
  1. Awadhendra Tiwari

    Post:126

    Points:882
    Re: Protecting dll files from use.

    Make use of the  System.Security; namespace

    decorate your code by this attribute
    [assembly:FileIOPermission(Security.Action.RequestMinimum,Unresticted.True)|SecurityPermission(SecurityAction.RequestRefuse, SkipVerification = false)]

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!