Java Cryptography Extension keystorefile

application/octet-stream

Safe

Magic Bytes

Offset: 0
CE FA ED FE

The Java Cryptography Extension KeyStore (JCEKS) is a proprietary binary container format developed by Sun Microsystems, now Oracle, for the Java platform. It was specifically designed to store symmetric secret keys, alongside private keys and digital certificates, facilitating encryption and secure authentication processes. While it originally provided stronger protection than standard JKS files, this format is now considered legacy, as newer Java versions default to the industry-standard PKCS#12 format for improved interoperability.

Extension

.jceks

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .jceks files in Python

Python
def is_jceks(file_path: str) -> bool:
    """Check if file is a valid JCEKS by magic bytes."""
    signature = bytes([0xCE, 0xFA, 0xED, 0xFE])
    with open(file_path, "rb") as f:
        return f.read(4) == signature

How to validate .jceks files in Node.js

Node.js
function isJCEKS(buffer: Buffer): boolean {
  const signature = Buffer.from([0xCE, 0xFA, 0xED, 0xFE]);
  return buffer.subarray(0, 4).equals(signature);
}
Go
func IsJCEKS(data []byte) bool {
    signature := []byte{0xCE, 0xFA, 0xED, 0xFE}
    if len(data) < 4 {
        return false
    }
    return bytes.Equal(data[:4], signature)
}

API Endpoint

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

Related Formats