Skip to content

Short example of how to run offline licensing in Python with https://keygen.sh/. Compatible with Docker.

Notifications You must be signed in to change notification settings

keygen-sh/example-python-licensing-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sources

Original repo: https://github.com/keygen-sh/example-python-cryptographic-machine-files

How to run

Example config:

Linux / Windows:

python main.py --fingerprint '198e9fe586114844f6a4eaca5069b41a7ed43fb5a2df84892b69826d64573e39' --path-license examples/license.lic --path-machine examples/machine.lic

Normal config:

  • Your fingerprint should be the hash of the serial number of your machine (you can execute the program to see it) computed with SHA3_512 (Online Converter).
  • Replace the public key from keygen.sh line 66 of main.py.
  • Get your machine file on keygen.sh and put the raw license key in a new file named license.lic.
  • Put your machine.lic & license.lic in the same folder as main.py and run:

Linux / Windows:

python main.py

(You need to run it as root in Linux because it needs to access /dev/sda to get the serial number of your machine.)

Docker:

docker build . -t license-example-python
docker run -it license-example-python

About

Short example of how to run offline licensing in Python with https://keygen.sh/. Compatible with Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 90.8%
  • Dockerfile 9.2%