K-9 Mailsettings file

application/octet-stream

Safe

Magic Bytes

Offset: 0
3C 7E 36 3C 5C 25 5F 30 67 53 71 68 3B

The K-9 Mail Settings file is a configuration archive generated by K-9 Mail, an open-source email client for the Android operating system. This format is primarily utilized to back up user preferences, account details, and server settings, enabling seamless migration between devices or restoration of application states. These files are typically encrypted with a user-defined password to protect sensitive credentials, ensuring that account information remains secure during storage and transfer.

Extension

.k9s

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .k9s files in Python

Python
def is_k9s(file_path: str) -> bool:
    """Check if file is a valid K9S by magic bytes."""
    signature = bytes([0x3C, 0x7E, 0x36, 0x3C, 0x5C, 0x25, 0x5F, 0x30, 0x67, 0x53, 0x71, 0x68, 0x3B])
    with open(file_path, "rb") as f:
        return f.read(13) == signature

How to validate .k9s files in Node.js

Node.js
function isK9S(buffer: Buffer): boolean {
  const signature = Buffer.from([0x3C, 0x7E, 0x36, 0x3C, 0x5C, 0x25, 0x5F, 0x30, 0x67, 0x53, 0x71, 0x68, 0x3B]);
  return buffer.subarray(0, 13).equals(signature);
}
Go
func IsK9S(data []byte) bool {
    signature := []byte{0x3C, 0x7E, 0x36, 0x3C, 0x5C, 0x25, 0x5F, 0x30, 0x67, 0x53, 0x71, 0x68, 0x3B}
    if len(data) < 13 {
        return false
    }
    return bytes.Equal(data[:13], signature)
}

API Endpoint

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

Related Formats