in cassandra_sigv4/auth.py [0:0]
def _sha_256_hash(data):
try:
hasher = hashlib.sha256()
hasher.update(_ensure_b(data))
return hasher.hexdigest()
except Exception as e:
raise RuntimeError("Couldn't generate sha256 hash, {}".format(e))