import hashlib text = "" hash = hashlib.md5(text.encode("utf-8")).hexdigest() hash = hashlib.md5(hash.encode("utf-8")).hexdigest() print(hash)