aes 988 B

1234567891011121314151617181920212223242526272829
  1. #------------------------------------------------------------------------------
  2. # $File: aes,v 1.1 2020/08/18 21:20:22 christos Exp $
  3. #
  4. # aes: magic file for AES encrypted files
  5. # Summary: AES Crypt Encrypted Data File
  6. # From: Joerg Jenderek
  7. # URL: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard
  8. # Reference: https://www.aescrypt.com/aes_file_format.html
  9. 0 string AES
  10. >3 ubyte <3 AES encrypted data, version %u
  11. #!:mime application/aes
  12. !:mime application/x-aes-encrypted
  13. !:ext aes
  14. # For Version 2 the encrypted file can have text tags
  15. >>3 ubyte =2
  16. # length of an extension identifier and contents like: 0 24 33 38
  17. #>>5 ubeshort x \b, tag length %u
  18. #>>5 pstring/H x '%s'
  19. # standard extension tags like CREATED_BY
  20. >>>7 string CREATED_BY \b, created by
  21. # software product, manufacturer like "SharpAESCrypt v1.3.3.0" "aescrypt (Windows GUI) 3.10" ...
  22. >>>>&1 string x "%s"
  23. # TODO: more other tags
  24. # tag CREATED_DATE like YYYY-MM-DD
  25. # tag CREATED_TIME like HH:MM:SS
  26. #