Endjin's Software Licensing Framework
C# Gherkin Batchfile PowerShell
Latest commit adb8e10 Jan 13, 2016 @HowardvanRooijen HowardvanRooijen Update file name
Add support for the license being signed with SHA256



The framework is inspired by Rhino.Licensing, an excellent & elegant framework based on creating a cryptographic signature for an XML document which allows you to check to see if the message has been tampered with. The framework is layered on top of this principal, but allows you easily to specify your own license validation rules.

License generation and license validation have been seperated into different packages.

  • Endjin.Licensing contains validation & extensibility points
  • Endjin.Licensing.Infrastructure contains license generation and extensibility for storing and retrieving license data

The solution contains an example that has both server and client applications, which demonstrate the separation of concerns and how you can implement custom license validation rules. A Specflow based executable specification project also exists and is a good starting point for getting to know the features & behaviour of the framework.

The framework is available for both .NET 4.0 & .NET 4.5 via NuGet:

Install-Package Endjin.Licensing


Install-Package Endjin.Licensing.Infrastructure

A 5 post blog series has been written which provides a more detailed tour of the framework:

The last point to highlight is that the whole point of Endjin.Licensing (and many other licensing frameworks) is to act as a mechanism for users to do the right thing. Anyone with access to your binaries can reverse engineer your code (think how simple that is with tools like DotPeek or .NET Reflector) and patch them to circumvent your licensing. You can try more sophisticated techniques such as obfuscation via tools like Dotfuscator or SmartAssembly or use a packing tool like Themida which can inject unmanaged code into your assembly to prevent tools like DotPeek and .NET Reflector from decompiling them. If you’re looking to use Endjin.Licensing, then I would advise you read about these techniques. There are also several interesting StackOverflow articles containing differing perspectives about the merits of code protection mechanisms – well worth your time.

@HowardvRooijen | @endjin