private String BruteForcePassword(IList <String> passwords) { passwords.Add(""); foreach (String pass in passwords) { using (var archive = new SevenZipArchive(_workPath, ArchiveFormat.Unkown, pass)) { if (archive.CheckAll(pass)) { return(pass); } } } throw new SevenZipException("Unable to open the archive"); }