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