parameters: (self, password)
return_statement: return key_file_path
docstring: Create key file
docstring_summary: Create key file
docstring_tokens: Create key file
function: def _generate_key_file(self, password):
          """
          Create key file
          """
          key_file_path = os.path.join(self.module_path, Constant.PWF_PATH)
          CommonTools.mkdir_with_mode(key_file_path, Constant.AUTH_COMMON_DIR_STR)
          CommonTools.clean_dir(key_file_path)
          encrypt_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
              os.path.dirname(os.path.realpath(__file__)))))), Constant.ENCRYPT_TOOL)
          lib_path = os.path.join(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(
              os.path.dirname(os.path.dirname(os.path.realpath(__file__))))))), 'lib')
          CommonTools.encrypt_with_path(password, key_file_path, encrypt_path, lib_path)
          g.logger.info('Successfully generate key files with path [%s].' % key_file_path)
          return key_file_path
function_tokens: def _generate_key_file ( self , password ) : key_file_path = os . path . join ( self . module_path , Constant . PWF_PATH ) CommonTools . mkdir_with_mode ( key_file_path , Constant . AUTH_COMMON_DIR_STR ) CommonTools . clean_dir ( key_file_path ) encrypt_path = os . path . join ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) ) ) , Constant . ENCRYPT_TOOL ) lib_path = os . path . join ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . dirname ( os . path . realpath ( __file__ ) ) ) ) ) ) ) , 'lib' ) CommonTools . encrypt_with_path ( password , key_file_path , encrypt_path , lib_path ) g . logger . info ( 'Successfully generate key files with path [%s].' % key_file_path ) return key_file_path