def __init__(self, key=None):
        """
        :type key: any
        :rtype: None
        """
        self.digest = hashes.SHA256()
        self.key = force_bytes(key or settings.SECRET_KEY)
def __init__ ( self , key = None ) : self . digest = hashes . SHA256 ( ) self . key = force_bytes ( key or settings . SECRET_KEY )
:type key: any
        :rtype: None