Skip to content

dubniczky/License-Validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License Validation

A public key-based offline license validation protocol

Description

In some software, license validation is not practical with the use of online services. This is an offline implementation of license validation using asymmetric digital signature in python.

The user name and the expiration date are joined and encrypted with the private key, which could happen on a server once during purchase. Then the signature is sent to the user and entered into the application. The application has the public key pair of the server pre-packaged and will use it to check the validity of the signature and the expiration date.

Usage

Create key pair

make generate

Create test signature

make sign

Validate test signature

make verify