#NEWLINE# def _cdn_signature( self , path , params , expiry ) : #NEWLINE# #INDENT# key = base64 . b64decode ( self . secret ) #NEWLINE# signature = '\n' . join ( [ 'GET' , path . lower ( ) , self . key , expiry ] ) #NEWLINE# signature = hmac . new ( key , signature , hashlib . sha1 ) . digest ( ) #NEWLINE# return base64 . b64encode ( signature )