{"success":true,"data":{"ext":"pgd","name":"PGP disk image","description":"PGP Disk Image (PGD) is an encrypted virtual disk format originally created for PGP Corporation and later maintained within Symantec's PGP product line. It was used to store files, folders, and system volumes in an encrypted container for personal, enterprise, and removable-media protection. The format is a legacy component of older PGP desktop products, and access to archives depends on compatible software and the associated passphrase.","mime":[],"risk_level":"Safe","signatures":[{"hex":"50 47 50 64 4D 41 49 4E","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":["adf","dmg","g64","vhd","vmdk","bin"],"usage":{"python":"def is_pgd(file_path: str) -> bool:\n    \"\"\"Check if file is a valid PGD by magic bytes.\"\"\"\n    signature = bytes([0x50, 0x47, 0x50, 0x64, 0x4D, 0x41, 0x49, 0x4E])\n    with open(file_path, \"rb\") as f:\n        return f.read(8) == signature","node":"function isPGD(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x50, 0x47, 0x50, 0x64, 0x4D, 0x41, 0x49, 0x4E]);\n  return buffer.subarray(0, 8).equals(signature);\n}","go":"func IsPGD(data []byte) bool {\n    signature := []byte{0x50, 0x47, 0x50, 0x64, 0x4D, 0x41, 0x49, 0x4E}\n    if len(data) < 8 {\n        return false\n    }\n    return bytes.Equal(data[:8], signature)\n}"},"category":"Disk Images"}}