zip???????????????

??????????

???????????????????????? e?????????????????????????????????? Aspose.Zip API?????????????????????????????????????????????????AES??????ZIP?????????????????????????????

??????????????

???????T0p $ ecret??????????Capital English Letter?2?????????????????????????????????????

1string template = "t0p $ ecret {0} {1}";
??????????Capital English Letter??????????????2???????

???????????

???????????

1archiveloadoptions options = new archiveloadoptions();
2options.setDecryptionPassWord(?????);
3try(?????a = new Archive( "necrypted.zip"?options))
4    A.ExtractTodirectory( "?");
???????????????????? invaliddataexception??????

?????????????????

????????????1??????????????????????????????????????????????????????

 1string template = "t0p $ ecret {0} {1}";
 2for(char c = 'a'; c <'z'; c ++)
 3{
 4    boolean recort = false;
 5    for(int i = 10; i <99; i ++)
 6    {
 7        ????????= messageformat.format(template?c?i);
 8        archiveloadoptions options = new archiveloadoptions();
 9        options.setDecryptionPassWord(?????);
10        try(?????a = new Archive( "necrypted.zip"?options)){
11            A.ExtractTodirectory( "?");
12            ???= true;
13        }
14        catch(invaliddataexception e)
15        {
16            ???= false;
17        }
18
19        if (correct)
20        {
21            System.out.println("Proper password: " + password);
22            break;
23        }
24    }
25
26    if (correct)
27        break;
28}
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.