Jingxun
8 months ago
1 changed files with 36 additions and 0 deletions
@ -0,0 +1,36 @@ |
|||
# encoding: utf-8 |
|||
""" |
|||
@author: Qiancj |
|||
@contact: qiancj@risenenergy.com |
|||
@file: __init__.py |
|||
@create-time: 2023-09-21 09:21 |
|||
@description: The new python script |
|||
""" |
|||
__all__ = [ |
|||
"GmEncryptDecrypt", |
|||
"keyf", |
|||
"RequestToUrl", |
|||
"gm_encrypt", |
|||
"gm_decrypt", |
|||
"requester", |
|||
] |
|||
|
|||
from .gmssl_pack import GmEncryptDecrypt |
|||
from .request_util import RequestToUrl |
|||
|
|||
keyf = { |
|||
"pkf": "", |
|||
"pkb": "", |
|||
"sk": "" |
|||
} |
|||
|
|||
gm_encrypt = GmEncryptDecrypt( |
|||
sm2_public_key=keyf.get("pkb") |
|||
) |
|||
|
|||
gm_decrypt = GmEncryptDecrypt( |
|||
sm2_public_key=keyf.get("pkf"), |
|||
sm2_private_key=keyf.get("sk") |
|||
) |
|||
|
|||
requester = RequestToUrl("http://127.0.0.1:8080/") |
Loading…
Reference in new issue