{"success":true,"data":{"ext":"jks","name":"JavaKeyStore file","description":"Java KeyStore (JKS) is a keystore file format used in the Java platform and maintained through the Java Development Kit. It stores cryptographic keys, certificates, and trusted certificate entries for Java applications, application servers, and security tools. The format is legacy in many modern deployments, with newer keystore types often preferred; JKS files may also be protected by passwords, so access should be restricted to trusted users.","mime":["application/x-java-keystore"],"risk_level":"Safe","signatures":[{"hex":"FE ED FE ED","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"},{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_jks(file_path: str) -> bool:\n    \"\"\"Check if file is a valid JKS by magic bytes.\"\"\"\n    signature = bytes([0xFE, 0xED, 0xFE, 0xED])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isJKS(buffer: Buffer): boolean {\n  const signature = Buffer.from([0xFE, 0xED, 0xFE, 0xED]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsJKS(data []byte) bool {\n    signature := []byte{0xFE, 0xED, 0xFE, 0xED}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}