Objective-Zip icon indicating copy to clipboard operation
Objective-Zip copied to clipboard

Password not valid when opening zip file

Open rulovic opened this issue 7 years ago • 0 comments

Hello all, I am using Objective-zip library in my project However when I create zip file with password I am not able to open it. It always says that password is not valid. This is my code: OZZipFile *zipFile= [[OZZipFile alloc] initWithFileName:fullPath mode:OZZipFileModeCreate]; uint32_t crc= [errorLogData crc32]; NSError* myerror = nil; OZZipWriteStream *zipWriteStream = [zipFile writeFileInZipWithName:baseNameLog fileDate:[NSDate date] compressionLevel:OZZipCompressionLevelBest password:@"bla" crc32:crc error:&myerror];

I have printed value of myerror, which is nil and crc which is not zero. I think this is a problem in the library. Could you check it? I am using macOS 10.12.6 for development Regards

rulovic avatar Feb 05 '18 15:02 rulovic