{"success":true,"data":{"ext":"prc","name":"MobiPocket eBook (MOBI)","description":"MobiPocket eBook (MOBI) is a digital book file format developed by Mobipocket SA and later supported by Amazon for Kindle-related reading systems. It was used for distributing ebooks, newspapers, and other text-based publications on dedicated e-readers, desktop software, and mobile devices. The format is largely legacy following Amazon's adoption of newer Kindle formats, but files remain generally safe to open in modern readers.","mime":["application/x-mobipocket-ebook"],"risk_level":"Safe","signatures":[{"hex":"42 4F 4F 4B 4D 4F 42 49","offset":60,"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"}]},{"hex":"74 42 4D 50 4B 6E 57 72","offset":60,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["mobi"],"usage":{"python":"def is_prc(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PRC by magic bytes at offset 60.\"\"\"\n    signature = bytes([0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49])\n    with open(file_path, \"rb\") as f:\n        f.seek(60)\n        return f.read(8) == signature","node":"function isPRC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49]);\n  if (buffer.length < 68) return false;\n  return buffer.subarray(60, 68).equals(signature);\n}","go":"func IsPRC(data []byte) bool {\n    signature := []byte{0x42, 0x4F, 0x4F, 0x4B, 0x4D, 0x4F, 0x42, 0x49}\n    if len(data) < 68 {\n        return false\n    }\n    return bytes.Equal(data[60:68], signature)\n}"}}}