title: How to password protect a zip file with objective-zip and CRC32?
body: <p>I am trying to password-protect a zip file I create with Objective-zip. It requires a crc32 from me, but I just do not seem to be able to make it work, everytime I unzip it (with "The Unarchiver"), I get <em>'wrong password'</em> etc. </p>
  
  <p>I have looked around on here and although I was able to find some stuff, I could not find anything helpful, so I thought it okay to open a new question.</p>
  
  <p>This is my code so far:</p>
  
  <pre><code>//file i want to zip
  NSString *path = @"/Users/dominik/Coding/zipthis.txt";
  NSData *data = [NSData dataWithContentsOfFile:path];
  
  //Objective Zip Stream
  OZZipWriteStream *stream= [zipFile writeFileInZipWithName:@"fileInZip.txt" fileDate:[NSDate date] compressionLevel:OZZipCompressionLevelBest password:@"password" crc32:result];
  
  //I don't know what this log does
      NSLog(@"CRC32: %lu", result);
  </code></pre>
  
  <p>Any suggestions?</p>