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

?? ?? ????

“?????”????? ?? ??? ?? ??????. ???. ?? ???? ?? ??? ?? ? ??? ??????. aspose.zip api? ???? ????? ?? ???? ?? ?? ?? ??? ??? ??? ? ????. ? ??? AES ??? Zip ????? ?? ?? ????? ???? ?? ?????.

?? ??? ??

????? “T0p $ ecret”??? ?? ?? ??? 2 ??? ????? ?? ? ???. ??? ??? ?? ???? ?? ? ? ????.

1??? template = "t0p $ ecret {0} {1}";
?? ?? ???? ?? ?? ????? ?, ??? 2 ?? ?????.

?? ???? ??

? ??? ?? ?? ??

1archiveloadoptions ?? = ??? archiveloadoptions ();
2?? .setDecryptionPassword (????);
3try (???? a = ? ???? ( "encrypted.zip", ??)))
4    A. ExtractTodirectory ( ".");
??? ??? ??? ?? InvalidDataException? ?????.

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

??? ??? ??? ???? ???????. ?? ????? ??? ??? ??? ??? ?????.

 1??? template = "t0p $ ecret {0} {1}";
 2for (char c = 'a'; c < 'z'; c ++)
 3{
 4    ?? ?? = ??;
 5    for (int i = 10; i <99; i ++)
 6    {
 7        ??? ?? = messageformat.format (???, c, i);
 8        archiveloadoptions ?? = ??? archiveloadoptions ();
 9        ?? .setDecryptionPassword (????);
10        try (Archive a = new Archive ( "encrypted.zip", ??)) {
11            A. ExtractTodirectory ( ".");
12            ??? = true;
13        }
14        catch (invaliddataexception e)
15        {
16            ??? = ??;
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.