Update README.md
Showing
1 changed file
with
7 additions
and
4 deletions
| 1 | ## 鉴权与保护 | 1 | ## 鉴权与保护 |
| 2 | ### 0. 运行环境 | 2 | ### 0. 运行环境 |
| 3 | |||
| 3 | - python3 | 4 | - python3 |
| 5 | |||
| 4 | - pip install -r requirements.txt | 6 | - pip install -r requirements.txt |
| 5 | 7 | ||
| 6 | ### 1. 鉴权(服务端): verify.py | 8 | ### 1. 鉴权(服务端): verify.py |
| 9 | |||
| 7 | - 生成公私钥对 | 10 | - 生成公私钥对 |
| 8 | ``` | 11 | ``` |
| 9 | python RSA/create_keys.py | 12 | python RSA/create_keys.py |
| 10 | ``` | 13 | ``` |
| 11 | - 根据过期日期(必须)和MAC地址(可选, en0),通过私钥加密,生成认证文件 | 14 | - 根据过期日期(必须)和MAC地址(可选, en0),通过私钥加密,生成认证文件 |
| 15 | |||
| 12 | - help text | 16 | - help text |
| 13 | ``` | 17 | ``` |
| 14 | ❯ python RSA/encrypt.py -h | 18 | ❯ python RSA/encrypt.py -h |
| ... | @@ -25,6 +29,7 @@ | ... | @@ -25,6 +29,7 @@ |
| 25 | ``` | 29 | ``` |
| 26 | python RSA/encrypt.py -d 2021-01-12 -m 38:f9:d3:2e:c0:f3 | 30 | python RSA/encrypt.py -d 2021-01-12 -m 38:f9:d3:2e:c0:f3 |
| 27 | ``` | 31 | ``` |
| 32 | |||
| 28 | - 项目使用 | 33 | - 项目使用 |
| 29 | - 拷贝以下文件至项目 | 34 | - 拷贝以下文件至项目 |
| 30 | - 公钥:RSA/public.pem | 35 | - 公钥:RSA/public.pem |
| ... | @@ -41,10 +46,8 @@ | ... | @@ -41,10 +46,8 @@ |
| 41 | ``` | 46 | ``` |
| 42 | 47 | ||
| 43 | ### 2. 保护源码:py2so.py | 48 | ### 2. 保护源码:py2so.py |
| 44 | - description | 49 | |
| 45 | ```angular2html | 50 | - description: compile the .py to .so(Linux/Mac) or .pdy(Win) |
| 46 | compile the .py to .so(Linux/Mac) or .pdy(Win) | ||
| 47 | ``` | ||
| 48 | - help text | 51 | - help text |
| 49 | ``` | 52 | ``` |
| 50 | ❯ python py2so.py -h | 53 | ❯ python py2so.py -h | ... | ... |
-
Please register or sign in to post a comment