feat: 根目录文档、脚本、gitignore
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import base64, hashlib
|
||||
|
||||
sign_b64='MDNjOTRmZjA5NjBhZDIwYWUyM2NiN2U3MDEzNzcxNjE='
|
||||
print('decoded sign:', base64.b64decode(sign_b64).decode())
|
||||
content="""<Return>\n <storecode>C12227</storecode>\n <orderno>FW2606251457204991</orderno>\n <expno>6722887066</expno>\n <operator>15019129480</operator>\n <operdate>2026-06-25 15:09:34</operdate>\n <status>YY</status>\n <content>预约用户送货日期:2026-06-26 12:59:59;用户原因-用户主动改约(出差) </content>\n <yydate>2026-06-26 12:59:59</yydate>\n <remark>1</remark>\n</Return>"""
|
||||
for key in ['Haier,123','RRS,123']:
|
||||
raw=content+key
|
||||
h=hashlib.md5(raw.encode('utf-8')).hexdigest()
|
||||
b=base64.b64encode(h.encode('utf-8')).decode()
|
||||
print(key, h, b)
|
||||
|
||||
# also raw bytes variant
|
||||
for key in ['Haier,123','RRS,123']:
|
||||
raw=content+key
|
||||
digest=hashlib.md5(raw.encode('utf-8')).digest()
|
||||
b=base64.b64encode(digest).decode()
|
||||
print('raw', key, b)
|
||||
Reference in New Issue
Block a user