PGP secret keyring file

application/octet-stream

Safe

Magic Bytes

Offset: 0
97 4A 42 32 0D 0A 1A 0A

The PGP secret keyring file is a data format created by Phil Zimmermann for the Pretty Good Privacy encryption suite. This format is primarily used to store private cryptographic keys required for decrypting messages and generating digital signatures within PGP-compatible software. Although largely considered a legacy format replaced by modern OpenPGP standards, it remains safe to handle as it contains encrypted sensitive data; however, users must ensure the physical security of these files to prevent unauthorized access.

Extension

.skr

MIME Type

application/octet-stream

Byte Offset

0

Risk Level

Safe

Validation Code

How to validate .skr files in Python

Python
def is_skr(file_path: str) -> bool:
    """Check if file is a valid SKR by magic bytes."""
    signature = bytes([0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A])
    with open(file_path, "rb") as f:
        return f.read(8) == signature

How to validate .skr files in Node.js

Node.js
function isSKR(buffer: Buffer): boolean {
  const signature = Buffer.from([0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A]);
  return buffer.subarray(0, 8).equals(signature);
}
Go
func IsSKR(data []byte) bool {
    signature := []byte{0x97, 0x4A, 0x42, 0x32, 0x0D, 0x0A, 0x1A, 0x0A}
    if len(data) < 8 {
        return false
    }
    return bytes.Equal(data[:8], signature)
}

API Endpoint

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

Related Formats