title: what is the encryption algorithm used by zip files?
body: <p>I just want to know the exact formula (or algorithm) used for generating the pseudo random values used in encrypting the zip file. I am trying to create a password hacker(for zip files) and I also require to know how to verify if the random password generated by my program is correct. I have tried searching for an answer to this in Google but I could't find a direct solution. </p>
  
  <p>I am trying to program this zip hacker in c++.  </p>
  
  <p>note: by   formula (or algorithm) I meant: key derivation function.
  I just want the necessary information as quick as possible, that's why I posted it here!</p>