parameters: (key_file)
return_statement: return False
docstring: Detects if a key file is encrypted or not.
docstring_summary: Detects if a key file is encrypted or not.
docstring_tokens: Detects if a key file is encrypted or not .
function: def _is_key_file_encrypted(key_file):
      """Detects if a key file is encrypted or not."""
      with open(key_file, "r") as f:
          for line in f:
              # Look for Proc-Type: 4,ENCRYPTED
              if "ENCRYPTED" in line:
                  return True
  
      return False
function_tokens: def _is_key_file_encrypted ( key_file ) : with open ( key_file , "r" ) as f : for line in f : # Look for Proc-Type: 4,ENCRYPTED if "ENCRYPTED" in line : return True return False