import hashlib hash = hashlib.md5(bytes('88888', encoding='utf-8')) hash.update(bytes('1235678', encoding='utf-8')) print(hash.hexdigest())