first commit
This commit is contained in:
commit
0f0d32b7c3
3
json/build.sh
Executable file
3
json/build.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
xls2ui -m ../models -o ../wwwroot kyapikey *.json
|
15
kyapikeyclient/client.py
Normal file
15
kyapikeyclient/client.py
Normal 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
BIN
models/kyupapp.xlsx
Normal file
Binary file not shown.
BIN
models/kyupuserapikey.xlsx
Normal file
BIN
models/kyupuserapikey.xlsx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user