{"success":true,"data":{"ext":"p7s","name":"P7S","description":"P7S is a PKCS #7 digital signature file format defined by RSA Laboratories and standardized by the IETF for cryptographic message handling. It is used to verify document authenticity and integrity in email systems, signed software packages, and other applications that support S/MIME or related signature workflows. The format is not obsolete, but users should still verify signatures from trusted sources because a valid signature does not guarantee that the signed content is safe.","mime":["application/pkcs7-signature"],"risk_level":"Safe","signatures":[{"hex":"2D 2D 2D 2D 2D 42 45 47 49 4E 20 50 4B 43 53 37","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"}]}],"related":["asc","key","pem","csr","pub"],"usage":{"python":"def is_p7s(file_path: str) -> bool:\n    \"\"\"Check if file is a valid P7S by magic bytes.\"\"\"\n    signature = bytes([0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x50, 0x4B, 0x43, 0x53, 0x37])\n    with open(file_path, \"rb\") as f:\n        return f.read(16) == signature","node":"function isP7S(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x50, 0x4B, 0x43, 0x53, 0x37]);\n  return buffer.subarray(0, 16).equals(signature);\n}","go":"func IsP7S(data []byte) bool {\n    signature := []byte{0x2D, 0x2D, 0x2D, 0x2D, 0x2D, 0x42, 0x45, 0x47, 0x49, 0x4E, 0x20, 0x50, 0x4B, 0x43, 0x53, 0x37}\n    if len(data) < 16 {\n        return false\n    }\n    return bytes.Equal(data[:16], signature)\n}"},"category":"Certificates & Keys"}}