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

Function generate_random_string

tianyi.py:82–83  ·  view source on GitHub ↗
(length=16)

Source from the content-addressed store, hash-verified

80 return ''.join(chr(ord(char) + 2) for char in text)
81
82def generate_random_string(length=16):
83 return ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(length))
84
85def md5_hash(data):
86 return hashlib.md5(data.encode('utf-8')).hexdigest()

Callers 1

request_encryptedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected