Methods.txt 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. 7-Zip method IDs (4.56)
  2. -----------------------
  3. Each compression or crypto method in 7z has unique binary value (ID).
  4. The length of ID in bytes is arbitrary but it can not exceed 63 bits (8 bytes).
  5. If you want to add some new ID, you have two ways:
  6. 1) Write request for allocating IDs to 7-zip developers.
  7. 2) Generate 8-bytes ID:
  8. 7F ZZ ZZ ZZ ZZ ZZ MM MM
  9. 7F - Prefix for random IDs (1 byte)
  10. ZZ ZZ ZZ ZZ ZZ - Developer ID (5 bytes). Use real random bytes.
  11. MM MM - Method ID (2 bytes)
  12. You can notify 7-Zip developers about your Developer ID / Method ID.
  13. Note: Use new ID only if old codec can not decode data encoded with new version.
  14. List of defined IDs
  15. -------------------
  16. 00 - Copy
  17. 01 - Reserved
  18. 02 - Common
  19. 03 Swap
  20. - 2 Swap2
  21. - 4 Swap4
  22. 04 Delta (subject to change)
  23. 03 - 7z
  24. 01 - LZMA
  25. 01 - Version
  26. 03 - Branch
  27. 01 - x86
  28. 03 - BCJ
  29. 1B - BCJ2
  30. 02 - PPC
  31. 05 - BC_PPC_B (Big Endian)
  32. 03 - Alpha
  33. 01 - BC_Alpha
  34. 04 - IA64
  35. 01 - BC_IA64
  36. 05 - ARM
  37. 01 - BC_ARM
  38. 06 - M68
  39. 05 - BC_M68_B (Big Endian)
  40. 07 - ARM Thumb
  41. 01 - BC_ARMThumb
  42. 08 - SPARC
  43. 05 - BC_SPARC
  44. 04 - PPMD
  45. 01 - Version
  46. 7F -
  47. 01 - experimental methods.
  48. 80 - reserved for independent developers
  49. E0 - Random IDs
  50. 04 - Misc
  51. 00 - Reserved
  52. 01 - Zip
  53. 00 - Copy (not used). Use {00} instead
  54. 01 - Shrink
  55. 06 - Implode
  56. 08 - Deflate
  57. 09 - Deflate64
  58. 12 - BZip2 (not used). Use {04 02 02} instead
  59. 02 - BZip
  60. 02 - BZip2
  61. 03 - Rar
  62. 01 - Rar15
  63. 02 - Rar20
  64. 03 - Rar29
  65. 04 - Arj
  66. 01 - Arj (1,2,3)
  67. 02 - Arj 4
  68. 05 - Z
  69. 06 - Lzh
  70. 07 - Reserved for 7z
  71. 08 - Cab
  72. 09 - NSIS
  73. 01 - DeflateNSIS
  74. 02 - BZip2NSIS
  75. 06 - Crypto
  76. 00 -
  77. 01 - AES
  78. 0x - AES-128
  79. 4x - AES-192
  80. 8x - AES-256
  81. Cx - AES
  82. x0 - ECB
  83. x1 - CBC
  84. x2 - CFB
  85. x3 - OFB
  86. 07 - Reserved
  87. 0F - Reserved
  88. F0 - Misc Ciphers (Real Ciphers without hashing algo)
  89. F1 - Misc Ciphers (Combine)
  90. 01 - Zip
  91. 01 - Main Zip crypto algo
  92. 03 - RAR
  93. 02 -
  94. 03 - Rar29 AES-128 + (modified SHA-1)
  95. 07 - 7z
  96. 01 - AES-256 + SHA-256
  97. 07 - Hash (subject to change)
  98. 00 -
  99. 01 - CRC
  100. 02 - SHA-1
  101. 03 - SHA-256
  102. 04 - SHA-384
  103. 05 - SHA-512
  104. F0 - Misc Hash
  105. F1 - Misc
  106. 03 - RAR
  107. 03 - Rar29 Password Hashing (modified SHA1)
  108. 07 - 7z
  109. 01 - SHA-256 Password Hashing
  110. ---
  111. End of document