title: How to validate that a file is a password protected ZIP file, using C#
body: <p>Given a path to a file, how can I validate that the file is a password-protected zip file?</p>
  
  <p>i.e., how would I implement this function?</p>
  
  <pre><code>bool IsPasswordProtectedZipFile(string pathToFile)
  </code></pre>
  
  <p>I don't need to unzip the file -- I just need to verify that it's a ZIP and has been protected with some password.</p>
  
  <p>Thanks</p>