first commit

This commit is contained in:
yumoqing 2025-07-04 18:26:58 +08:00
commit 0f0d32b7c3
4 changed files with 18 additions and 0 deletions

3
json/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
xls2ui -m ../models -o ../wwwroot kyapikey *.json

15
kyapikeyclient/client.py Normal file
View File

@ -0,0 +1,15 @@
from time import time
from appPublic.aes import aes_encrypt_ecb, aes_decrypt_ecb
def build_beardata(appid, apikey, secretkey):
"""
this appid is isusses by upapp we connect to,
secretkey is with the appid, is s fixed key from upapp
apikey is user's apikey assigned by upapp when the users is synchronous to upapp
"""
t = time()
txt = f'{t}:{apikey}
cyber = aes_encrypt_ecb(secretkey, txt)
return f'Bear {appid}-:-{cyber}'

BIN
models/kyupapp.xlsx Normal file

Binary file not shown.

BIN
models/kyupuserapikey.xlsx Normal file

Binary file not shown.