mcrypt 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #------------------------------------------------------------------------------
  2. # $File: mcrypt,v 1.6 2022/02/08 18:51:45 christos Exp $
  3. # Mavroyanopoulos Nikos <nmav@hellug.gr>
  4. # mcrypt: file(1) magic for mcrypt 2.2.x;
  5. # URL: https://en.wikipedia.org/wiki/Mcrypt
  6. # http://fileformats.archiveteam.org/wiki/MCrypt
  7. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/n/nc-mcrypt.trid.xml
  8. # Update: Joerg Jenderek
  9. # Note: called by TrID "mcrypt encrypted (v2.5)"
  10. 0 string \0m\3 mcrypt 2.5 encrypted data,
  11. #!:mime application/octet-stream
  12. !:mime application/x-crypt-nc
  13. !:ext nc
  14. >4 string >\0 algorithm: %s,
  15. >>&1 leshort >0 keysize: %d bytes,
  16. >>>&0 string >\0 mode: %s,
  17. # Reference: http://mark0.net/download/triddefs_xml.7z/defs/n/nc-mcrypt-22.trid.xml
  18. # Note: called by TrID "mcrypt encrypted (v2.2)"
  19. 0 string \0m\2 mcrypt 2.2 encrypted data,
  20. #!:mime application/octet-stream
  21. !:mime application/x-crypt-nc
  22. # no example
  23. !:ext nc
  24. >3 byte 0 algorithm: blowfish-448,
  25. >3 byte 1 algorithm: DES,
  26. >3 byte 2 algorithm: 3DES,
  27. >3 byte 3 algorithm: 3-WAY,
  28. >3 byte 4 algorithm: GOST,
  29. >3 byte 6 algorithm: SAFER-SK64,
  30. >3 byte 7 algorithm: SAFER-SK128,
  31. >3 byte 8 algorithm: CAST-128,
  32. >3 byte 9 algorithm: xTEA,
  33. >3 byte 10 algorithm: TWOFISH-128,
  34. >3 byte 11 algorithm: RC2,
  35. >3 byte 12 algorithm: TWOFISH-192,
  36. >3 byte 13 algorithm: TWOFISH-256,
  37. >3 byte 14 algorithm: blowfish-128,
  38. >3 byte 15 algorithm: blowfish-192,
  39. >3 byte 16 algorithm: blowfish-256,
  40. >3 byte 100 algorithm: RC6,
  41. >3 byte 101 algorithm: IDEA,
  42. >4 byte 0 mode: CBC,
  43. >4 byte 1 mode: ECB,
  44. >4 byte 2 mode: CFB,
  45. >4 byte 3 mode: OFB,
  46. >4 byte 4 mode: nOFB,
  47. >5 byte 0 keymode: 8bit
  48. >5 byte 1 keymode: 4bit
  49. >5 byte 2 keymode: SHA-1 hash
  50. >5 byte 3 keymode: MD5 hash