ZipVersion.php 2.2 KB

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