Skip to main content

jerry-rigged license system with UUID check (preventing more than one installation) and expiration date

Tested against Python 3.9.16 (Anaconda) - Windows 10

jerry-rigged???

From https://www.urbandictionary.com/define.php?term=jerry-rig jerry-rig - To put together in a way that works, but is contrary to the "norm" or specific directions (instructions)

The serial number system can be cracked easily (which one can't?), but it should be secure enough for any average user.

pip install jerryrigserialgen - if you want to generate serial numbers

pip install jerryrigserialver - if you want to verify serial numbers (client)

from jerryrigserialgen import Serialgenerator

# Generates serial numbers
# pip install jerryrigserialgen
seri = Serialgenerator(
    product="myproduct",  # Name of the product
    savefolder="c:\\mynicefolder\\new",  # just for the record - files are not needed
    hardcodedpasswort_transfer="topsecret",  # for transfer.sh - must be hard-coded in the app the client uses
    hardcodedpasswort_url="5248614597016233",  # 16 digits to encrypt the URL - must be hard-coded in the app the client uses
    addinformationtoserial=(
        "info1",
        "info2",
    ),  # extra information you want to transmit to the app the client uses
    licensedays=17,  # duration of the license - from today on
    subtract_from_time=0,  # for debugging - to create expired licenses
)
serialnumber, debuginfo = seri.upload()
print(serialnumber) # This is the serial number you are going to give to your client, like: 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e

# output
# File written to: c:\mynicefolder\new\2023_03_23_09_23_18_28484401.cfg
# 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e

##########################################################################

# Check serial numbers - client's PC

# pip install jerryrigserialver
from jerryrigserialver import check_serial

isvalid, daysleft, duration_of_license, product, otherinfos = check_serial(
    hardcodedpasswort_transfer="topsecret",
    # hardcodedpasswort_transfer for transfer.sh - must be hard-coded
    hardcodedpasswort_url="5248614597016233",  # 16 digits to encrypt the url - must be hard-coded
    serialnumber=serialnumber,
    notvalidanymore=f"The license you're using is not valid anymore. It expired %d day[s] ago",
    stillvalid=f"The license you're using is valid for %d more day[s].",
    serialusedanotherpc="The license has been used on another PC",
)
print(isvalid, daysleft, duration_of_license, product, otherinfos)


# The license you're using is valid for 17 more day[s].
# True 17 17 myproduct ['info1', 'info2']

# Compile the code of your app using PyInstaller or some other tool

Metadata

Release files for jerryrigserialver 0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jerryrigserialver 0.11
File Size Uploaded Provenance Actions
jerryrigserialver-0.11.tar.gz 13.6 kB Without provenance Details for jerryrigserialver-0.11.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jerryrigserialver 0.11
File Interpreter ABI Platform Actions
jerryrigserialver-0.11-py3-none-any.whl Python 3 none any Details for jerryrigserialver-0.11-py3-none-any.whl

Total release size: 27.5 kB

Release files / jerryrigserialver-0.11.tar.gz

Download URL jerryrigserialver-0.11.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f361d9a99dde110c6773e766c3521de069aa2f0fbea8e8f098d07376ad70a624
BLAKE2b-256 checksum
How to use checksums
cc15c8408a57d04af987d004c5904703bb968daecf8370394044aaf620fa9f23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Release files / jerryrigserialver-0.11-py3-none-any.whl

Download URL jerryrigserialver-0.11-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02cda8b1af6c8c3f9a75f5f88343f2514c6f83104f1270817bab64f5d34e5b23
BLAKE2b-256 checksum
How to use checksums
f6a5e022e36663dfae9b25539793b754751c92e2e61bd4830cdb9e4c2bf07e8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.5

Security for jerryrigserialver 0.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page