PGP disk image

application/octet-stream

Safe

Magic Bytes

Offset: 0
50 49 43 54 00 08

PGP disk image (PGD) is a proprietary encrypted container format originally developed by PGP Corporation for secure data storage and transport. It is primarily used to create virtual encrypted volumes that mount as local drives within the PGP Desktop software suite for transparent file encryption. Now considered a legacy format, it has largely been superseded by modern full-disk encryption solutions following the acquisition of the company by Symantec.

Extension

.pgd

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pgd files in Python

Python
def is_pgd(file_path: str) -> bool:
    """Check if file is a valid PGD by magic bytes."""
    signature = bytes([0x50, 0x49, 0x43, 0x54, 0x00, 0x08])
    with open(file_path, "rb") as f:
        return f.read(6) == signature

How to validate .pgd files in Node.js

Node.js
function isPGD(buffer: Buffer): boolean {
  const signature = Buffer.from([0x50, 0x49, 0x43, 0x54, 0x00, 0x08]);
  return buffer.subarray(0, 6).equals(signature);
}
Go
func IsPGD(data []byte) bool {
    signature := []byte{0x50, 0x49, 0x43, 0x54, 0x00, 0x08}
    if len(data) < 6 {
        return false
    }
    return bytes.Equal(data[:6], signature)
}

API Endpoint

GET /api/v1/pgd
curl https://filesignature.org/api/v1/pgd

Related Formats