code: def has_header_encryption(self):
          
          if self._hdrenc_main:
              return True
          if self._main:
              if self._main.flags & RAR_MAIN_PASSWORD:
                  return True
          return False
docs: Returns True if headers are encrypted