{"success":true,"data":{"ext":"flac","name":"Free Lossless Audio Codec file","description":"Free Lossless Audio Codec (FLAC) is an open, lossless audio file format created by the Xiph.Org Foundation and maintained as a royalty-free standard. It is used for archiving, distributing, and playing back high-fidelity music and other audio in a compressed form without quality loss, and is supported by many media players, editors, and hardware devices. FLAC is generally considered safe, with no notable historical security concerns beyond normal media-file handling.","mime":["audio/flac","audio/x-flac"],"risk_level":"Safe","signatures":[{"hex":"66 4C 61 43","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"},{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"},{"name":"Neil Harvey FileSignatures","url":"https://raw.githubusercontent.com/neilharvey/FileSignatures/master/src/FileSignatures/Formats/Flac.cs"}]},{"hex":"66 4C 61 43 00 00 00 22","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["m4a","oga","ogg","aac","ac3","aif"],"usage":{"python":"def is_flac(file_path: str) -> bool:\n    \"\"\"Check if file is a valid FLAC by magic bytes.\"\"\"\n    signature = bytes([0x66, 0x4C, 0x61, 0x43])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isFLAC(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x66, 0x4C, 0x61, 0x43]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsFLAC(data []byte) bool {\n    signature := []byte{0x66, 0x4C, 0x61, 0x43}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"},"category":"Audio"}}