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

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

???????????????? ?????? ?????? “????????”, i. ?. ?????�?????? ?????? ???? ??????????, ????????? ?????. Aspose.zip API ???????? ????? ? ?????? ????? ???????? ????????, ??? ???????????? ?????. ? ??? ?????? ???????? ???????????? ?????? ??????????? ?????????? ZIP-?????? AES.

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

???????, ??? ?????? ??????????? ? ???????? “t0p $ ecret”, ? ????? - Capital English Letter ?? ???? ????. ????, ?? ?????? ??????? ????? ??????:

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

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

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

1????????? ArchiveLoadoptions = ???? ??????????????? ();
2?????.setDecryptionPassword (??????);
3????????? (????? A = ????? ????? ("????????????.zip", ????????))
4    A. ExtractTodirectory (".");
???????? InvalidDataException ???? ??????????? ???????????? ??????.

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

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

 1String template = "t0p $ ecret {0} {1}";
 2??? (char c = 'a'; c <'z'; c ++)
 3{
 4    Boolean ????????? = ??????????;
 5    for (int i = 10; i <99; i ++)
 6    {
 7        ????? ?????? = messageformat.format (??????, c, i);
 8        ????????? ArchiveLoadoptions = ???? ??????????????? ();
 9        ?????.setDecryptionPassword (??????);
10        ????????? (????? A = ????? ????? ("endrypted.zip", ?????????)) {
11            A. ExtractTodirectory (".");
12            ????????? = ??????;
13        }
14        ??? (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.