IME
application/octet-stream
Magic Bytes
Offset: 0
4D 5A
The Input Method Editor (IME) file is a system library format developed by Microsoft for the Windows operating system. These files function essentially as renamed Dynamic Link Libraries, enabling users to input complex characters from languages like Chinese, Japanese, or Korean using standard keyboards. While integral to internationalization support, they share the internal structure of standard executables and are typically located within protected system directories to ensure stability.
Validation Code
How to validate .ime files in Python
Python
def is_ime(file_path: str) -> bool:
"""Check if file is a valid IME by magic bytes."""
signature = bytes([0x4D, 0x5A])
with open(file_path, "rb") as f:
return f.read(2) == signature
How to validate .ime files in Node.js
Node.js
function isIME(buffer: Buffer): boolean {
const signature = Buffer.from([0x4D, 0x5A]);
return buffer.subarray(0, 2).equals(signature);
}
Go
func IsIME(data []byte) bool {
signature := []byte{0x4D, 0x5A}
if len(data) < 2 {
return false
}
return bytes.Equal(data[:2], signature)
}
API Endpoint
GET
/api/v1/ime
curl https://filesignature.org/api/v1/ime