Don't want to share a library !

Posted on 2004-11-28
Last Modified: 2010-04-15
Hi Experts,

I have built a library for my app, but I don't want other app to be able to use my library.
How can I do ?

Thanks in advance for your answers.
Question by:noulouk
    1 Comment
    LVL 6

    Accepted Solution

    .NET has built in support for this. The key is to sign your code digitally and make your Assembly require callers to have that signature. See <> for a very simple explanation. It's pretty easy to get working, but you should be well familiar with .NET code security as a whole prior to deploying such an application. I strongly advise at least reading the help topics on security issues and preferably a good book.

    You may also want to consider using an obfuscation tool to help keep your source code safe. Taking a look at the links at <> and reading the article at <> might be useful.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Execute stored procedure in mysql database 2 30 mvc C# 2 27
    network + 7 59
    Refresh page ASP.NET C# 3 39
    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video discusses moving either the default database or any database to a new volume.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now