CH-J Toolsserver management over SSH
Menu
All guides and articles →

OpenPGP V4 vs. V6: technical differences and compatibility

Packet versions, fingerprints, signatures, and a practical migration to modern OpenPGP. Why V6 is not automatically post-quantum or compatible with older programs.

The key version is not the application version

The OpenPGP V4 and V6 designations refer to the versions of the data structures involved, particularly the key and signature packets. They are not a GnuPG program number or a switch that changes every file uniformly. A certificate contains multiple packets, and a message may use additional custom versions of the structures. Therefore, when diagnosing, identify the specific object and the supported operation.

The current RFC 9580 standard describes modern OpenPGP including V6 and also the rules for interoperability with established structures. It cannot be inferred from this that every program with the OpenPGP logo can handle all the new variants. Older installations may only understand parts of the formats and their cryptographic policy may reject even technically recognized algorithms.

Fingerprint and short identifiers are different

V4 uses a 160-bit fingerprint based on SHA-1 over a well-defined key input. In V6, the fingerprint is 256 bits and is based on SHA-256 with a different framing. It is not a simple hash of a text file asc. Therefore, converting the same material between structures can change the identification and requires proper trust management.

The derivation of the Key ID is also different: V4 uses the last 64 bits of the fingerprint, V6 uses the first 64 bits. Rewriting the algorithm for old keys to V6 without checking would lead to a bad search. Use the full fingerprint for security decisions and not the short ID, email, or only the last group of characters displayed.

Signature packages and modern designs

V6 changes the signature structure and includes a salt corresponding to the algorithm. The verification tool must correctly process not only the public number or curve, but also the signed data, subpackets, and the corresponding rules. Therefore, knowledge of the mathematical primitives in the library alone does not guarantee support for OpenPGP signatures in a given version.

The modern standard also includes new or modified options for protecting messages and private material. Do not confuse this with simply stating that every V4 key uses the old encryption and every V6 file uses the latest mode. A particular encrypted object has its own parameters, and the recipient must support the entire chosen profile.

V6 alone does not guarantee post-quantum security

The format version and cryptographic family are different axes. A V6 key can use classic Ed25519 or RSA, which are not post-quantum signature algorithms. Therefore, supporting a modern packet version alone does not solve quantum migration. Consider the algorithm of the primary key, subkeys, signatures, and the way the message is protected.

Similarly, historical or alternative V5 formats cannot be automatically considered the same as V6 according to RFC 9580. LibrePGP and experimental profiles have specific differences. If an application claims V5 support, request the exact format and operations; numerical order does not guarantee mutual compatibility or support by the same keyserver.

Test the public certificate as a whole

An OpenPGP public certificate includes a primary key, identities, self-signatures, subkeys, and binding signatures, or revocations. A server or application may retrieve the primary packet but not preserve all the important parts. Therefore, a mere match of the primary fingerprint does not prove the preservation of the entire certificate and all its applicable roles.

When migrating, export the public copy, import it in the target tool, and verify the number and fingerprints of subkeys, the validity of the bindings, and the expected operations. Perform actual signature verification for the signing subkey; try appropriate test communication for the encryption subkey. Use harmless test data and do not send the private parts to the keyserver.

How to transition without losing communication

First, compile a list of applications and recipients that need to use the new key. Include legacy backup environments, automation, keyserver, and archived documents. For each direction, perform export, import, and live operation tests. Successfully verifying your own signature in the same program is only a first step, not a complete proof of interoperability.

Announce the new identity in a trusted way and leave a controlled plan for the older counterparts. Do not transfer the master key directly to the only existing copy. Back up the necessary private material and means of revocation. Recovering old encrypted data may require the old decryption subkey, even if new messages already use a different one.

What to write in the compatibility result

  • The exact version and build of both the source and target programs.
  • Primary key and subkey versions and algorithms.
  • Import completeness and key binding validity.
  • Especially the result of signing, verification, encryption and decryption.

For CH-J Tools, consider the specific generated profile and issue, for CH-J Keys2, the actual returned certificate. V6 is not just another inscription on the list: proper use requires appropriate parsing, verification, and operational trust. A precise test will allow you to choose a modern format where the entire required path supports it.

Frequently asked questions

Is V6 automatically post quantum?

No. A format version is not a cryptographic family.

Is the Key ID derived the same as V4?

No. V4 uses the last 64 bits of the fingerprint, V6 the first 64 bits.

Does a matching fingerprint prove the preservation of the entire certificate?

No. Check identities, subkeys, signatures, and revocations in particular.

Detailed documentation

IETF: OpenPGP RFC 9580 →

GnuPG: documentation of commands and operations →

OpenPGP: the standard explained →

Biometric unlock and security →

All tutorials by category →