Blame view

vendor/nelexa/zip/src/Constants/ZipVersion.php 2.17 KB
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  <?php
  
  namespace PhpZip\Constants;
  
  /**
   * Version needed to extract or software version.
   *
   * @see https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT Section 4.4.3
   *
   * @author Ne-Lexa alexey@nelexa.ru
   * @license MIT
   */
  interface ZipVersion
  {
      /** @var int 1.0 - Default value */
      const v10_DEFAULT_MIN = 10;
  
      /** @var int 1.1 - File is a volume label */
      const v11_FILE_VOLUME_LABEL = 11;
  
      /**
       * 2.0 - File is a folder (directory)
       * 2.0 - File is compressed using Deflate compression
       * 2.0 - File is encrypted using traditional PKWARE encryption.
       *
       * @var int
       */
      const v20_DEFLATED_FOLDER_ZIPCRYPTO = 20;
  
      /** @var int 2.1 - File is compressed using Deflate64(tm) */
      const v21_DEFLATED64 = 21;
  
      /** @var int 2.5 - File is compressed using PKWARE DCL Implode */
      const v25_IMPLODED = 25;
  
      /** @var int 2.7 - File is a patch data set */
      const v27_PATCH_DATA = 27;
  
      /** @var int 4.5 - File uses ZIP64 format extensions */
      const v45_ZIP64_EXT = 45;
  
      /** @var int 4.6 - File is compressed using BZIP2 compression */
      const v46_BZIP2 = 46;
  
      /**
       * 5.0 - File is encrypted using DES
       * 5.0 - File is encrypted using 3DES
       * 5.0 - File is encrypted using original RC2 encryption
       * 5.0 - File is encrypted using RC4 encryption.
       *
       * @var int
       */
      const v50_ENCR_DES_3DES_RC2_ORIG_RC4 = 50;
  
      /**
       * 5.1 - File is encrypted using AES encryption
       * 5.1 - File is encrypted using corrected RC2 encryption**.
       *
       * @var int
       */
      const v51_ENCR_AES_RC2_CORRECT = 51;
  
      /** @var int 5.2 - File is encrypted using corrected RC2-64 encryption** */
      const v52_ENCR_RC2_64_CORRECT = 52;
  
      /** @var int 6.1 - File is encrypted using non-OAEP key wrapping*** */
      const v61_ENCR_NON_OAE_KEY_WRAP = 61;
  
      /** @var int 6.2 - Central directory encryption */
      const v62_ENCR_CENTRAL_DIR = 62;
  
      /**
       * 6.3 - File is compressed using LZMA
       * 6.3 - File is compressed using PPMd+
       * 6.3 - File is encrypted using Blowfish
       * 6.3 - File is encrypted using Twofish.
       *
       * @var int
       */
      const v63_LZMA_PPMD_BLOWFISH_TWOFISH = 63;
  }