Menu

#448 7z extracts archive even the password is wrong

open
nobody
None
5
2023-02-21
2023-02-21
No

i have archives (rar and zip) that are password protected. when i try to "extract" them with a wrong password the output folder is created and "something" is extracted to the output folder but the output files are broken. The output files have the same file size then the files within the archive and the process takes the same time then extracting with the correct password. also when i try to extract the archive without a password this happens. is there a function to check whether the archive is password protected or the password i try is the correct one without to extract the archive?

i can remember this doesn't happen every time. some archives fail because of wrong password without extracting it. but i can't find any example on my computer it just remember to such archives.

Discussion

  • Igor Pavlov

    Igor Pavlov - 2023-02-21

    There are several possible combinations of encryption/compress methods.
    Some of these combinations allow to detect wrong password before extraction.

     
  • Thomas Müller

    Thomas Müller - 2023-02-21

    And how can i detect that? The only way i found was to use an wrong password and read out the error code. This works also here but after extracting the archive.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.