commit 0f0d32b7c3375e5f0cabf635776e7041f9c90972 Author: yumoqing Date: Fri Jul 4 18:26:58 2025 +0800 first commit diff --git a/json/build.sh b/json/build.sh new file mode 100755 index 0000000..6fd2291 --- /dev/null +++ b/json/build.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +xls2ui -m ../models -o ../wwwroot kyapikey *.json diff --git a/kyapikeyclient/client.py b/kyapikeyclient/client.py new file mode 100644 index 0000000..778510f --- /dev/null +++ b/kyapikeyclient/client.py @@ -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}' + diff --git a/models/kyupapp.xlsx b/models/kyupapp.xlsx new file mode 100644 index 0000000..f204ed4 Binary files /dev/null and b/models/kyupapp.xlsx differ diff --git a/models/kyupuserapikey.xlsx b/models/kyupuserapikey.xlsx new file mode 100644 index 0000000..4d20fa0 Binary files /dev/null and b/models/kyupuserapikey.xlsx differ