comm.py from hashlib import md5 import uuid def getMd5(mes): mes = mes.encode() return md5(mes).hexdigest() def getUUID(): return str(uuid.uuid1())