#NEWLINE# @ classmethod #NEWLINE# def header( cls , message , secret = None ) : #NEWLINE# #INDENT# '\n        Produces a header which contains a digest of a message, generated using the shared secret\n        :type secret: str\n        :return: The header to use in authenticated network requests\n        :rtype: dict\n        ' #NEWLINE# secret = ( secret or cls . get ( ) ) #NEWLINE# return { #NEWLINE# #INDENT# cls . DIGEST_HEADER_KEY : cls . _get_hex_digest ( message , secret ) , #NEWLINE# #UNINDENT# }