PGP public keyring file

application/octet-stream

Safe

Magic Bytes

Offset: 0
9C CB CB 8D 13 75 D2 11 91 58 00 C0 4F 79 56 A4

The PGP public keyring file is a proprietary data format originally created for Pretty Good Privacy software and currently maintained by Symantec Corporation. It serves as a local repository to store and organize the public keys required for encrypting communications and verifying digital signatures. Although contemporary OpenPGP implementations typically utilize newer formats, this legacy structure remains necessary for backward compatibility with older encryption suites and archived keychains.

Extension

.pkr

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .pkr files in Python

Python
def is_pkr(file_path: str) -> bool:
    """Check if file is a valid PKR by magic bytes."""
    signature = bytes([0x9C, 0xCB, 0xCB, 0x8D, 0x13, 0x75, 0xD2, 0x11, 0x91, 0x58, 0x00, 0xC0, 0x4F, 0x79, 0x56, 0xA4])
    with open(file_path, "rb") as f:
        return f.read(16) == signature

How to validate .pkr files in Node.js

Node.js
function isPKR(buffer: Buffer): boolean {
  const signature = Buffer.from([0x9C, 0xCB, 0xCB, 0x8D, 0x13, 0x75, 0xD2, 0x11, 0x91, 0x58, 0x00, 0xC0, 0x4F, 0x79, 0x56, 0xA4]);
  return buffer.subarray(0, 16).equals(signature);
}
Go
func IsPKR(data []byte) bool {
    signature := []byte{0x9C, 0xCB, 0xCB, 0x8D, 0x13, 0x75, 0xD2, 0x11, 0x91, 0x58, 0x00, 0xC0, 0x4F, 0x79, 0x56, 0xA4}
    if len(data) < 16 {
        return false
    }
    return bytes.Equal(data[:16], signature)
}

API Endpoint

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

Related Formats