Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Suggest a pattern or architecture for software license registration and validation mechanism

I'm working on building a generic and reusable software license registration library that will be embedded into multiple products. I'm thinking of writing an Enterprise Library for this, and would like to get some better suggestions here.

The mechanism will be some sort of plugin which will drive the registration mechanism of the product in which it is implemented. The product will generate it's GUI for the registration form, but the business logic for license generation and validation will be written on the separate project. This project will just be referenced to or "plugged" into the main product to drive the license mechanism.

Could I get some strong architectural patterns to build this project around?

like image 564
dhrumilap Avatar asked Feb 06 '12 07:02

dhrumilap


People also ask

What is architectural pattern in software architecture?

An architectural pattern is a general, reusable solution to a commonly occurring problem in software architecture within a given context. The architectural patterns address various issues in software engineering, such as computer hardware performance limitations, high availability and minimization of a business risk.

What is software architecture example?

Famous examples of architectural patterns are microservices, message bus, service requester/ consumer, MVC pattern, MVVM, microkernel, n-tier, domain-driven design components, and presentation-abstraction-control.


2 Answers

Create a private key and public key concept.

Let your host application have one predefined key and same key will be with the consumer product.

On consumer side, the host application has to check the combination of public key and private key. Define the work flow algorithm that will be harder for someone to decode. Also embed the the library into the project so that the assembly can not be found to the user.

You will get code for implementing above flow on following link:

Implementing Licencing mechanism for a Software

And for more discussion over license, you can follow the link below :

http://www.otc.utexas.edu/SoftwareAndCopyrights.jsp

like image 189
jparthj Avatar answered Oct 14 '22 00:10

jparthj


Take a look at Service Provider Frameworks.

like image 37
user1168577 Avatar answered Oct 13 '22 23:10

user1168577