AIN Compressed Archive

application/octet-stream

Safe

Magic Bytes

Offset: 0
21 3C 61 72 63 68 3E 0A

AIN Compressed Archive is a legacy file compression format developed by George Trifonov for the MS-DOS operating system. It was primarily used to package multiple files into a single compressed volume to optimize storage space and facilitate distribution through early bulletin board systems. Although now obsolete and rarely supported by contemporary software, the format remains a low security risk because it lacks internal scripting capabilities or executable triggers.

Extension

.ain

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .ain files in Python

Python
def is_ain(file_path: str) -> bool:
    """Check if file is a valid AIN by magic bytes."""
    signature = bytes([0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .ain files in Node.js

Node.js
function isAIN(buffer: Buffer): boolean {
  const signature = Buffer.from([0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsAIN(data []byte) bool {
    signature := []byte{0x21, 0x3C, 0x61, 0x72, 0x63, 0x68, 0x3E, 0x0A}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

GET /api/v1/ain
curl https://filesignature.org/api/v1/ain

Related Formats