-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file is not open..password is wrong..please help #1
Comments
Can u provide more details ? I had used this code in my project already. So if u can provide more details maybe i can help u. |
@MartinChan3 |
Ok, I write this on Windows and haven't tested it in ubuntu yet, I will do it soon. |
Thank you .i am waiting your reply.. |
@vaibhavsnap I have checked the code on Ubuntu and a little mistake should be metioned is Line132 and 133 in qzlib.cpp:
You can delete that due to Win and Linux uses different file path seperator. |
Thank you for your reply..But i cannot understand how to do this..because in my code |
I test the example on Ubuntu 16.06(the .so file was compiled by zlib 1.2.8) and it succeed, u can compare what it different from yours. |
Ok, I will show more details next morning...Its wired |
I have use same code ..I am not changing anything on test.zip..I think this is unicode issue while extracting file..I can't understand how to solved it. |
What's your ubuntu version and Qt version (Also which compiler u use)? If I have time this weekend , I will install all the environment and test it. |
Ubuntu 18.04.2 LTS |
I am also try this block,but same error occure.. " I'm guessing that the last parameter in your zipOpenNewFileInZip3() call is zero. It is supposed to be the CRC of the file. When a compressed entry is encrypted it is preceded by a 12-byte encryption header. That header is composed of 10 or 11 random bytes followed by 2 or 1 bytes of the high end of that file's CRC. The header is then encrypted using the password, and encryption continues from there on the compressed data. (1 vs. 2 bytes is determined by the version of the zip format.) This allows the unzipper to check the password by comparing the end of the decrypted encryption header with the CRC stored in the local header that precedes it. What is happening with BetterZip and 7Zip is that they are simply not checking the end of the encryption header. They then do not notice that the encryption header does not comply with the specification, and continue to correctly decrypt the compressed data. UnZip and WinZip on the other hand detect the bug." |
Got it, last day I try to complier Qt4.8.7 on Ubuntu 18.04.2 LTS but i can't access to get some essential package due to Internet instability. I will tell u if i find something. |
yes thank you.. |
No description provided.
The text was updated successfully, but these errors were encountered: