import hashlib def create_sha512(b: bytes): h = hashlib.sha512() h.update(b) return h.hexdigest()