def _new_cache_key_hasher():
"""Builds a new instance of the hasher used for building cache keys.
:rtype: cryptography.hazmat.primitives.hashes.Hash
"""
return hashes.Hash(
hashes.SHA512(),
backend=default_backend()
)
评论列表
文章目录