AES Cryptfile format
application/octet-stream
Magic Bytes
Offset: 0
41 4D 59 4F
The AES Cryptfile format is an open-source standard for data encryption developed and maintained by Packetizer. It is primarily utilized for securing sensitive information during local storage and ensuring the secure transfer of private files over public networks. This format employs the Advanced Encryption Standard with 256-bit keys and integrates a message authentication code to provide integrity verification and prevent unauthorized modification of the encrypted content.
Validation Code
How to validate .aes files in Python
Python
def is_aes(file_path: str) -> bool:
"""Check if file is a valid AES by magic bytes."""
signature = bytes([0x41, 0x4D, 0x59, 0x4F])
with open(file_path, "rb") as f:
return f.read(4) == signature
How to validate .aes files in Node.js
Node.js
function isAES(buffer: Buffer): boolean {
const signature = Buffer.from([0x41, 0x4D, 0x59, 0x4F]);
return buffer.subarray(0, 4).equals(signature);
}
Go
func IsAES(data []byte) bool {
signature := []byte{0x41, 0x4D, 0x59, 0x4F}
if len(data) < 4 {
return false
}
return bytes.Equal(data[:4], signature)
}
API Endpoint
GET
/api/v1/aes
curl https://filesignature.org/api/v1/aes