MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / encryptmd5

Function encryptmd5

tianyi.py:88–91  ·  view source on GitHub ↗
(timestamp, randomnum)

Source from the content-addressed store, hash-verified

86 return hashlib.md5(data.encode('utf-8')).hexdigest()
87
88def encryptmd5(timestamp, randomnum):
89 md5_e = md5_hash(str(timestamp))
90 base64_encoded = base64.b64encode((md5_e + randomnum).encode()).decode()
91 return md5_hash(base64_encoded + randomnum)
92
93def encrypt_request(data, t, e, i):
94 n = json.dumps({k: v for k, v in data.items() if v is not None}, separators=(',', ':'))

Callers 1

request_encryptedMethod · 0.85

Calls 1

md5_hashFunction · 0.85

Tested by

no test coverage detected