[New Feature] Password list file
Posted: 22 Jan 2015, 21:03
As requested - added support for password list file:
- new option "UnpackPassFile" to set the location of the file;
- during unpack the passwords are tried from the file until unpack succeeds or all passwords were tried;
- implemented different strategies for rar4 and rar5-archives taking into account the features of formats;
- for rar5-archives a wrong password is reported by unrar unambiguously and the program can immediately try other passwords from the password list;
- for rar4-archives and for 7z-archives it is not possible to differentiate between damaged archive and wrong password; for those archives if the first unpack attempt (without password) fails the program executes par-check (preferably quick par-check if enabled via option "ParQuick") before trying the passwords from the list;
- another optimization is that the password list is tried only when the first unpack attempt (without password) reports a password error or decryption error; this saves unnecessary unpack attempts for damaged unencrypted archives.