Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
(((
I know that if we use a complicated password for zip files that has more than 8 characters, it's quite safe and can't be cracked easily...
For example, for an 8-digits complicated password (containing ABC,abc,123,!@#), it takes 83.5 days for a supercomputer to test all combinations, and 22 years for a 9-digit!!!!)
)))

But in an example, we have an encrypted zip file that contains multiple files, and we have the extracted form of one of those files

In this case and with having the original and zipped-encrypted file, can we write a program that cracks the password easily...? Not by taking months or even years to crack?

It it's possible, there will be problems; for example, a zip file may contain ""thumbs.db"" or ""desktop.ini"" files, that use almost the same pattern everywhere... and more common: every file format has its own hex pattern too!!! (For example, EF BB BF for UTF-8 text files)... and situations that we know the contents of a part of a text file... etc.
Posted

1 solution

Nothing prevents you from packing other ZIP files in a bigger ZIP file, all encrypted with different passwords. I cannot say how much sense would it make, but it addresses your concern.
More serious problem is another one: how would you deliver the passwords themselves? One solution is the public-key cryptography which is not used by ZIP, but can be separately used just for key distribution, and then, using the secret message based on the public-key cryptography, you can transmit the ZIP passwords.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900