#NEWLINE# def makeHMACSHA256( msg , key ) : #NEWLINE# #INDENT# 'Make a new HMAC-SHA256 with *msg* and *key* and return digest byte\n    string.\n\n    :param str msg: msg\n    :param str key: key to use\n    :returns: **str** HMAC digest\n    ' #NEWLINE# t = hmac . new ( msg = msg , key = key , digestmod = hashlib . sha256 ) #NEWLINE# return t . digest ( )