Skip to content

Commit 31065fe

Browse files
committed
doc: README.md detailed
1 parent ed410eb commit 31065fe

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,27 @@
22
Original repo: https://github.com/keygen-sh/example-python-cryptographic-machine-files
33

44
# How to run
5-
__Example config:__
5+
## Example config:
6+
67
**Linux / Windows:**
78
```shell
89
python main.py --fingerprint '198e9fe586114844f6a4eaca5069b41a7ed43fb5a2df84892b69826d64573e39' --path-license examples/license.lic --path-machine examples/machine.lic
910
```
1011

11-
__Normal config:__
12+
## Normal config:
1213
* 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](https://emn178.github.io/online-tools/sha3_512.html)).
13-
* Get your machine file on keygen.sh and put the raw license key in a new file named `license.lic`.
14+
* Replace the public key from [keygen.sh](keygen.sh) line 63 of `main.py`.
15+
* Get your machine file on [keygen.sh](keygen.sh) and put the raw license key in a new file named `license.lic`.
1416
* Put your `machine.lic` & `license.lic` in the same folder as `main.py` and run:
1517

1618
**Linux / Windows:**
1719
```shell
1820
python main.py
1921
```
20-
(You need to run it as root in Linux because it needs to access `/dev/sda` to get the serial number of your machine.)
22+
(You need to run it as root in Linux because it needs to access `/dev/sda` to get the serial number of your machine.)
23+
24+
## Docker:
25+
```shell
26+
docker build . -t license-example-python
27+
docker run -it license-example-python
28+
```

0 commit comments

Comments
 (0)