{"success":true,"data":{"ext":"psp","name":"Corel Paint Shop Pro image file","description":"Corel Paint Shop Pro image file is a raster graphics format created and maintained by Corel for its Paint Shop Pro image editor. It is used for editing and storing layered images, graphics projects, and intermediate artwork in the Paint Shop Pro workflow. The format is primarily associated with legacy desktop publishing and photo editing software; files from untrusted sources should be handled cautiously, as with any image format that may contain embedded data.","mime":[],"risk_level":"Safe","signatures":[{"hex":"7E 42 4B 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["clb","cmx","cpt"],"usage":{"python":"def is_psp(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PSP by magic bytes.\"\"\"\n    signature = bytes([0x7E, 0x42, 0x4B, 0x00])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isPSP(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x7E, 0x42, 0x4B, 0x00]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsPSP(data []byte) bool {\n    signature := []byte{0x7E, 0x42, 0x4B, 0x00}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}