md5
import hashlib
m = '123456'
sign = hashlib.new('md5', bytes(m, encoding='utf-8')).hexdigest()
sha256
sign='112233445566'
hash_algorithm = hashlib.sha256()
hash_algorithm.update(sign.encode('utf-8'))
sign = hash_algorithm.hexdigest()
uuid
u = str(uuid.uuid1())