An encrypted ZIP file can have two correct passwords – here's why
bleepingcomputer.com
bleepingcomputer.com
There are 13 digits in the phrase; assuming all of them can be freely chosen, that’s 43 bits of entropy. Just enough to find one example.
> When producing password-protected ZIP archives with AES-256 mode enabled, the ZIP format uses the PBKDF2 algorithm and hashes the password provided by the user, if the password is too long. By too long, we mean longer than 64 bytes (characters), explains the researcher.
So the first accepted password would be the overly long one, and the second accepted password is the ASCII representation of the SHA1 hash of that long password. The researcher used a modified version hashcat to get a password which SHA1 hash is also ASCII.
Also, why is SHA1 being used instead of SHA2?
By the way, SHA1 and SHA2 were designed by the NSA.