{"success":true,"data":{"ext":"oga","name":"Ogg Vorbis Codec compressed Multimedia file","description":"Ogg Vorbis Audio (OGA) is a lossy audio file format based on the Ogg container and maintained by the Xiph.Org Foundation. It is used for music playback, streaming audio, archival storage, and distribution in software, web, and multimedia applications. The format is generally safe to open, though malformed files or parser vulnerabilities in media players can still cause crashes or expose software bugs.","mime":["audio/ogg"],"risk_level":"Safe","signatures":[{"hex":"4F 67 67 53","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]},{"hex":"4F 67 67 53 00 02 00 00 00 00 00 00 00 00","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["ogg","opus","spx","flac","m4a","aac"],"usage":{"python":"def is_oga(file_path: str) -> bool:\n    \"\"\"Check if file is a valid OGA by magic bytes.\"\"\"\n    signature = bytes([0x4F, 0x67, 0x67, 0x53])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isOGA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x4F, 0x67, 0x67, 0x53]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsOGA(data []byte) bool {\n    signature := []byte{0x4F, 0x67, 0x67, 0x53}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Audio"}}