Extract the `hwid` on Windows, Linux, Mac. Cross-platform using Python, native OS detection.
Project description
HWID
Extract the `hwid` on Windows, Linux, Mac. Cross-platform using Python, native OS detection.
Installation
pip install hwid
Usage
Module:
import hwid
print(hwid.get_hwid())
# 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
CLI:
hwid
XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
Why?
I have created a bunch of desktop applications for Windows to sell. I needed a way to license my applications. I decided to use the hwid of the computer to license my applications. I needed a way to get the hwid of the computer, so I created this module. It has only one purpose: getting the hwid of the computer. It is cross-platform and does not require any external dependencies.
I do not recommend using this module for licensing purposes by itself. You can use it as a part of your licensing system.
If you are using server-client architecture, you can send the encrypted hwid to the server and check if it is valid. It's easy to intercept the request to the server. You can check mitmproxy for that.
If you are using a local licensing system, you can encrypt the hwid and store it in a file. Then you can check if the encrypted hwid is valid. You can use pyarmor to obfuscate your code. It will make it harder to reverse engineer your code.
Disclaimer
This module is not intended to be used for malicious purposes. The author is not responsible for any damage caused by this module. Use at your own risk.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file hwid-0.1.0.tar.gz
.
File metadata
- Download URL: hwid-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9aebe2271ede00b406a15617622ecedd8eab079ec9689d3df7f5ca8510a7d2b |
|
MD5 | ab24ab8e510a63234e854f3c527579fe |
|
BLAKE2b-256 | 7299c9ba45037e00f5c1a42c7b3777ac1257c800e30b162ea66439db55e99293 |
File details
Details for the file hwid-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: hwid-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1012-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78bfd9413d7393d2d180f3285a4e51c7cc791201c489b87808382864fcd7ba05 |
|
MD5 | 9fef115f74a372e3d02fb3ffad7084d7 |
|
BLAKE2b-256 | 67782d9d0fca98f8ab99c4b3040e0d06078cb25f3bc8d46b1b87b7eff1c56a3a |