jerryrigserialver


Namejerryrigserialver JSON
Version 0.10 PyPI version JSON
download
home_pagehttps://github.com/hansalemaos/jerryrigserialver
Summaryjerry-rigged license system with UUID check (preventing more than one installation) and expiration date
upload_time2023-03-23 13:27:04
maintainer
docs_urlNone
authorJohannes Fischer
requires_python
licenseMIT
keywords uuid license system expiration date serial number
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
# 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)





```python

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

```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hansalemaos/jerryrigserialver",
    "name": "jerryrigserialver",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "UUID,license system,expiration date,serial number",
    "author": "Johannes Fischer",
    "author_email": "<aulasparticularesdealemaosp@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f5/0c/beff5dc3d13db62656b374b43e96dc98dca171822d0fea44aaaa85918066/jerryrigserialver-0.10.tar.gz",
    "platform": null,
    "description": "\n# jerry-rigged license system with UUID check (preventing more than one installation) and expiration date\n\n\n\n### Tested against Python 3.9.16 (Anaconda) -  Windows 10\n\n\n\n#### jerry-rigged???\n\n\n\nFrom https://www.urbandictionary.com/define.php?term=jerry-rig\n\njerry-rig - To put together in a way that works, but is contrary to the \"norm\" or specific directions (instructions)\n\n\n\nThe serial number system can be cracked easily (which one can't?), but it should be secure enough for any average user.\n\n\n\n### pip install jerryrigserialgen - if you want to generate serial numbers\n\n\n\n### pip install jerryrigserialver - if you want to verify serial numbers (client)\n\n\n\n\n\n```python\n\nfrom jerryrigserialgen import Serialgenerator\n\n\n\n# Generates serial numbers\n\n# pip install jerryrigserialgen\n\nseri = Serialgenerator(\n\n    product=\"myproduct\",  # Name of the product\n\n    savefolder=\"c:\\\\mynicefolder\\\\new\",  # just for the record - files are not needed\n\n    hardcodedpasswort_transfer=\"topsecret\",  # for transfer.sh - must be hard-coded in the app the client uses\n\n    hardcodedpasswort_url=\"5248614597016233\",  # 16 digits to encrypt the URL - must be hard-coded in the app the client uses\n\n    addinformationtoserial=(\n\n        \"info1\",\n\n        \"info2\",\n\n    ),  # extra information you want to transmit to the app the client uses\n\n    licensedays=17,  # duration of the license - from today on\n\n    subtract_from_time=0,  # for debugging - to create expired licenses\n\n)\n\nserialnumber, debuginfo = seri.upload()\n\nprint(serialnumber) # This is the serial number you are going to give to your client, like: 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e\n\n\n\n# output\n\n# File written to: c:\\mynicefolder\\new\\2023_03_23_09_23_18_28484401.cfg\n\n# 566978376a4b356956775955427a4779636e533856705a59534d314369387735526e59744230396f6c6771795256675a31365a756947344753616d3757536d5961704f736a362f63506871724a792f3845664d4845773d3d475ac18a6927938b4ede1613058f253e\n\n\n\n##########################################################################\n\n\n\n# Check serial numbers - client's PC\n\n\n\n# pip install jerryrigserialver\n\nfrom jerryrigserialver import check_serial\n\n\n\nisvalid, daysleft, duration_of_license, product, otherinfos = check_serial(\n\n    hardcodedpasswort_transfer=\"topsecret\",\n\n    # hardcodedpasswort_transfer for transfer.sh - must be hard-coded\n\n    hardcodedpasswort_url=\"5248614597016233\",  # 16 digits to encrypt the url - must be hard-coded\n\n    serialnumber=serialnumber,\n\n    notvalidanymore=f\"The license you're using is not valid anymore. It expired %d day[s] ago\",\n\n    stillvalid=f\"The license you're using is valid for %d more day[s].\",\n\n    serialusedanotherpc=\"The license has been used on another PC\",\n\n)\n\nprint(isvalid, daysleft, duration_of_license, product, otherinfos)\n\n\n\n\n\n# The license you're using is valid for 17 more day[s].\n\n# True 17 17 myproduct ['info1', 'info2']\n\n\n\n# Compile the code of your app using PyInstaller or some other tool\n\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "jerry-rigged license system with UUID check (preventing more than one installation) and expiration date",
    "version": "0.10",
    "split_keywords": [
        "uuid",
        "license system",
        "expiration date",
        "serial number"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9fd8472b44a2c8cc3254f79b614bc5cca8194a4aeecb2bbb3eb38dd32ad07a52",
                "md5": "88259c9e993607c632bf3d325bcabf80",
                "sha256": "a6c91ba3e99be9ffdfe5e8dbbcdf1909ae6c5caee3318939c661520b1614650b"
            },
            "downloads": -1,
            "filename": "jerryrigserialver-0.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "88259c9e993607c632bf3d325bcabf80",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9481,
            "upload_time": "2023-03-23T13:27:02",
            "upload_time_iso_8601": "2023-03-23T13:27:02.904711Z",
            "url": "https://files.pythonhosted.org/packages/9f/d8/472b44a2c8cc3254f79b614bc5cca8194a4aeecb2bbb3eb38dd32ad07a52/jerryrigserialver-0.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f50cbeff5dc3d13db62656b374b43e96dc98dca171822d0fea44aaaa85918066",
                "md5": "1bef35fefcd94615ba546bbc38675bab",
                "sha256": "001a2aef19d4ebdf795592b8bde6928fa95a0f4ec4ed131ee53f2f37cd9b2a00"
            },
            "downloads": -1,
            "filename": "jerryrigserialver-0.10.tar.gz",
            "has_sig": false,
            "md5_digest": "1bef35fefcd94615ba546bbc38675bab",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 7806,
            "upload_time": "2023-03-23T13:27:04",
            "upload_time_iso_8601": "2023-03-23T13:27:04.632232Z",
            "url": "https://files.pythonhosted.org/packages/f5/0c/beff5dc3d13db62656b374b43e96dc98dca171822d0fea44aaaa85918066/jerryrigserialver-0.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-23 13:27:04",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "hansalemaos",
    "github_project": "jerryrigserialver",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "jerryrigserialver"
}
        
Elapsed time: 0.05763s