#NEWLINE# def _generate_password( email ) : #NEWLINE# #INDENT# m = hmac . new ( base64 . b64decode ( _get_secret_key ( 'splunk' ) ) , str ( [ email , SERVICE_NAME ] ) ) #NEWLINE# return base64 . urlsafe_b64encode ( m . digest ( ) ) . strip ( ) . replace ( '=' , '' )