{"success":true,"data":{"ext":"vpk","name":"VPK","description":"The VPK file format is a package archive developed and maintained by Valve for use with the Source engine and related game tools. It is used to store game assets such as models, textures, sounds, scripts, and other content for distribution and loading by Source-based applications. The format is generally safe, though files from untrusted sources should still be handled carefully because archives may contain modified or unexpected game data.","mime":[],"risk_level":"Safe","signatures":[{"hex":"34 12 AA 55","offset":0,"sources":[{"name":"Wikipedia","url":"https://en.wikipedia.org/wiki/List_of_file_signatures"}]}],"related":[],"usage":{"python":"def is_vpk(file_path: str) -> bool:\n    \"\"\"Check if file is a valid VPK by magic bytes.\"\"\"\n    signature = bytes([0x34, 0x12, 0xAA, 0x55])\n    with open(file_path, \"rb\") as f:\n        return f.read(4) == signature","node":"function isVPK(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x34, 0x12, 0xAA, 0x55]);\n  return buffer.subarray(0, 4).equals(signature);\n}","go":"func IsVPK(data []byte) bool {\n    signature := []byte{0x34, 0x12, 0xAA, 0x55}\n    if len(data) < 4 {\n        return false\n    }\n    return bytes.Equal(data[:4], signature)\n}"}}}