Giter VIP home page Giter VIP logo

node-license-server's Introduction

node-license-server

NPM Version NPM Downloads Build Status Test Coverage

client software licensing server

Get Started

git clone https://github.com/devfans/node-license-server.git
cd node-license-server
node index.js

Licensing logic

The licensing server will generate client software license to permit client software to run when software user trys to run it at the first time, and the license can be saved locally to be reused for the bound machine. The main flow should be like:

  1. License server add a batch of license keys into the database, the keys can be encrypted strings by server RSA private key which will contains the informations including expiration time.
  2. Software holder issue license keys to software users.
  3. Client software should generate a unique ID of the client machine to identify the unique hardware, which can be achived using modules like machine-digest, and post the key and machine uuid to license server.
  4. License server bind the key with the machine uuid, and generate a license file with RSA private key.
  5. Client software save the license file locally and verify license with server's RSA public key. Client software can also set a daily timer to check the expiration of the key.

Client module: node-license-client

node-license-client is a nodejs implementation client module for node-license-server.

Generate RSA Keys

openssl genrsa -des3 -out private.pem 1024
openssl rsa -in private.pem -outform PEM -pubout -out public.pem

node-license-server's People

Contributors

devfans avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.