Methods.txt 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. 7-Zip method IDs for 7z and xz archives
  2. ---------------------------------------
  3. Version: 15.06
  4. Date: 2015-06-23
  5. Each compression or crypto method in 7z is associated with unique binary value (ID).
  6. The length of ID in bytes is arbitrary but it can not exceed 63 bits (8 bytes).
  7. xz and 7z formats use same ID map.
  8. If you want to add some new ID, you have two ways:
  9. 1) Write request for allocating IDs to 7-Zip developers.
  10. 2) Generate 8-bytes ID:
  11. 3F ZZ ZZ ZZ ZZ ZZ MM MM
  12. 3F - Prefix for random IDs (1 byte)
  13. ZZ ZZ ZZ ZZ ZZ - Developer ID (5 bytes). Use real random bytes.
  14. MM MM - Method ID (2 bytes)
  15. You can notify 7-Zip developers about your Developer ID / Method ID.
  16. Note: Use new ID, if old codec can not decode data encoded with new version.
  17. List of defined IDs
  18. -------------------
  19. 00 - Copy
  20. 03 - Delta
  21. 04 - BCJ (x86)
  22. 05 - PPC (big-endian)
  23. 06 - IA64
  24. 07 - ARM (little-endian)
  25. 08 - ARMT (little-endian)
  26. 09 - SPARC
  27. 21 - LZMA2
  28. 02.. - Common
  29. 03 [Swap]
  30. - 2 Swap2
  31. - 4 Swap4
  32. 03.. - 7z
  33. 01 -
  34. 01 - LZMA
  35. 03 - [Branch Codecs]
  36. 01 - [x86 Codecs]
  37. 03 - BCJ
  38. 1B - BCJ2 (4 packed streams)
  39. 02 -
  40. 05 - PPC (big-endian)
  41. 03 -
  42. 01 - Alpha
  43. 04 -
  44. 01 - IA64
  45. 05 -
  46. 01 - ARM (little-endian)
  47. 06 -
  48. 05 - M68 (big-endian)
  49. 07 -
  50. 01 - ARMT (little-endian)
  51. 08 -
  52. 05 - SPARC
  53. 04 -
  54. 01 - PPMD
  55. 7F -
  56. 01 - experimental method.
  57. 04.. - Misc codecs
  58. 00 - Reserved
  59. 01 - [Zip]
  60. 00 - Copy (not used. Use {00} instead)
  61. 01 - Shrink
  62. 06 - Implode
  63. 08 - Deflate
  64. 09 - Deflate64
  65. 0A - Imploding
  66. 0C - BZip2 (not used. Use {040202} instead)
  67. 0E - LZMA (LZMA-zip)
  68. 5F - xz
  69. 60 - Jpeg
  70. 61 - WavPack
  71. 62 - PPMd (PPMd-zip)
  72. 63 - wzAES
  73. 02 -
  74. 02 - BZip2
  75. 03 - [Rar]
  76. 01 - Rar1
  77. 02 - Rar2
  78. 03 - Rar3
  79. 05 - Rar5
  80. 04 - [Arj]
  81. 01 - Arj(1,2,3)
  82. 02 - Arj4
  83. 05 - [Z]
  84. 06 - [Lzh]
  85. 07 - Reserved for 7z
  86. 08 - [Cab]
  87. 09 - [NSIS]
  88. 01 - DeflateNSIS
  89. 02 - BZip2NSIS
  90. F7 - External codecs (that are not included to 7-Zip)
  91. 0x xx - reserved
  92. 10 xx - reserved
  93. 06.. - Crypto
  94. F0 - Ciphers without hashing algo
  95. 01 - [AES]
  96. 0x - AES-128
  97. 4x - AES-192
  98. 8x - AES-256
  99. Cx - AES
  100. x0 - ECB
  101. x1 - CBC
  102. x2 - CFB
  103. x3 - OFB
  104. x4 - CTR
  105. F1 - Combine Ciphers
  106. 01 - [Zip]
  107. 01 - ZipCrypto (Main Zip crypto algo)
  108. 03 - [RAR]
  109. 02 -
  110. 03 - Rar29AES (AES-128 + modified SHA-1)
  111. 07 - [7z]
  112. 01 - 7zAES (AES-256 + SHA-256)
  113. ---
  114. End of document