← Back to Blog

Age vs GPG vs QNSQY: Data Encryption Comparison

Age vs GPG vs QNSQY: Data Encryption Comparison - QNSQY post-quantum encryption guide

Quick Summary

You have files you need to keep private. Maybe they are tax documents, medical records, business contracts, or personal photos. You want to encrypt them so nobody else can read them. Three popular tools can do this for you: GPG, Age, and QNSQY. Each one scrambles your files so they look like gibberish to anyone without the password or key. But they work very differently under the hood, and one critical difference will matter more and more as the years go by.

  • GPG is the old workhorse. It has been around since 1999 and can do almost everything, but it is notoriously confusing to use. Its encryption math (RSA, ECDH) will be crackable once large quantum computers exist.
  • Age is the modern minimalist. Created in 2019 by Filippo Valsorda (formerly Google's Go security lead), it strips away GPG's complexity and gives you a single, clean command. Its encryption math (X25519) is also vulnerable to quantum computers.
  • QNSQY is built for the future. It uses NIST-standardized post-quantum algorithms (ML-KEM, ML-DSA) combined with classical cryptography, so your files stay secure even after quantum computers arrive. It offers both a GUI and a CLI, runs on all major platforms, and is designed for simplicity.
The Critical Difference: GPG and Age rely on math problems that quantum computers can solve quickly (factoring large numbers and computing discrete logarithms). QNSQY uses lattice-based cryptography that has no known quantum shortcut. If your files need to stay secret for more than five to ten years, this distinction is the only one that truly matters.

What Does Each Tool Actually Do?

GPG: The Swiss Army Knife

GPG (GNU Privacy Guard) is the free, open-source implementation of the OpenPGP standard, defined in RFC 4880. Think of it like a giant toolbox that can encrypt files, sign documents, verify identities, manage a network of trusted contacts (the "Web of Trust"), and handle encrypted email. It supports dozens of algorithms, multiple key types, and has plugins for nearly every email client and operating system.

The problem is that this toolbox has hundreds of buttons, dials, and switches. Generating a key pair for the first time involves answering questions about key types, key sizes, expiration dates, and subkeys. Encrypting a file for someone else requires importing their public key, verifying its fingerprint, and signing it to mark it as trusted. For a software developer who deals with GPG every day, this is manageable. For someone who just wants to lock a folder of PDFs, it is overwhelming.

GPG's core cryptography relies on RSA (invented in 1977) and ECDH (based on elliptic curve math from the 1980s). Both of these are vulnerable to Shor's algorithm, a quantum computing technique published by Peter Shor in 1994. When a sufficiently powerful quantum computer is built, it will be able to factor the large numbers behind RSA and solve the elliptic curve problems behind ECDH in hours or days, rather than the billions of years a classical computer would need.

Age: The Minimalist

Age (pronounced like the English word) was created specifically because GPG was too complicated. Its design philosophy is radical simplicity: one command to encrypt, one command to decrypt, no configuration files, no key servers, no Web of Trust. You generate a key pair with age-keygen, and you encrypt a file with age -r <recipient> -o encrypted.age plaintext.txt. That is it.

Under the hood, Age uses X25519 for key exchange and ChaCha20-Poly1305 for symmetric encryption. These are excellent, modern choices. X25519 is one of the fastest and most widely deployed elliptic curve protocols on the internet. ChaCha20-Poly1305 is the same cipher Google uses in Android encryption and Chrome TLS connections. For password-based encryption, Age uses scrypt, a memory-hard key derivation function that makes brute-force password guessing expensive.

Age's limitation is scope. It does not support digital signatures (you cannot prove who encrypted or authored a file). It does not have a GUI. It does not produce audit logs. And like GPG, its key exchange (X25519) is based on elliptic curve math that Shor's algorithm can break. The Age specification (age-encryption.org/v1) explicitly acknowledges this and notes that post-quantum support may come in a future version, but as of early 2026, it has not been added.

QNSQY: Built for the Post-Quantum Era

QNSQY (pronounced "consequey") was designed from the ground up around NIST's post-quantum cryptographic standards: FIPS 203 (ML-KEM for key encapsulation), FIPS 204 (ML-DSA for digital signatures), and FIPS 205 (SLH-DSA for hash-based signatures). These standards were finalized by NIST in August 2024 after eight years of public evaluation involving hundreds of researchers worldwide.

The key technical choice is hybrid encryption. When you encrypt a file with QNSQY, it does not use just ML-KEM or just X25519. It uses both simultaneously. The shared secret from ML-KEM and the shared secret from X25519 are combined together to produce the final encryption key. This means your file is protected even if one of the two algorithms turns out to have a weakness. If a classical attack breaks ML-KEM someday, X25519 still holds. If a quantum computer breaks X25519, ML-KEM still holds. Both would have to fail at the same time for your data to be at risk.

For password-based encryption, QNSQY uses Argon2id, the winner of the Password Hashing Competition (2015). Argon2id requires both large amounts of memory and significant CPU time to compute, which makes it extremely expensive to attack with specialized hardware (GPUs, ASICs, or FPGAs). GPG's S2K (String-to-Key) function, by comparison, was designed in the 1990s and is orders of magnitude cheaper to attack.

Detailed Feature Comparison

Feature GPG Age QNSQY
Quantum Resistant No No Yes (ML-KEM hybrid)
Key Exchange Algorithm RSA / ECDH X25519 ML-KEM + X25519 (hybrid)
Symmetric Cipher AES, Camellia, Twofish, etc. ChaCha20-Poly1305 AES-256-GCM / XChaCha20-Poly1305
Password Hashing S2K (weak by modern standards) scrypt Argon2id (128-512 MB memory)
Digital Signatures Yes (RSA / ECDSA / EdDSA) No Yes (ML-DSA + Ed25519 hybrid)
Ease of Use Complex (many options, subcommands) Very simple (2 commands) Simple (CLI + GUI on all platforms)
GUI Available Third-party only (Kleopatra, GPG Suite) No Yes, built-in (Linux, macOS, Windows)
Audit Logging No No Yes, tamper-evident hash chain (Pro+)
Air-Gapped Mode Manual (disconnect network yourself) No Yes, kernel-level network block (Linux CLI)
File Size Limit Unlimited Unlimited 100 MB Free / 25 GB Pro / Unlimited Business
Key Management Web of Trust, keyservers Simple key files Key files, vault, recipient groups
Compliance Standards OpenPGP (RFC 4880) age-encryption.org/v1 NIST FIPS 203 / 204 / 205
License GPL (Free) BSD (Free) Free tier + Commercial (Pro / Business)

Understanding the Algorithms

To understand why quantum resistance matters, it helps to know what each algorithm actually does. Think of encryption as locking a box. The algorithm is the type of lock, and the key is the combination.

RSA (GPG's default key exchange)

RSA is like a lock whose security depends on the difficulty of finding the prime factors of a very large number. If someone gives you the number 15, you can figure out it is 3 times 5. But if someone gives you a number with 600 digits, no classical computer can factor it in a reasonable time. Quantum computers change this equation. Shor's algorithm can factor these large numbers exponentially faster. An RSA-2048 key that would take a classical computer trillions of years to break could be cracked by a large quantum computer in hours.

X25519 (Age's and part of QNSQY's key exchange)

X25519 is based on the difficulty of the elliptic curve discrete logarithm problem. Imagine a clock with 2^255 positions. If someone jumps forward by a secret number of positions, you can see where they landed, but you cannot figure out how many jumps they took. This is extremely hard for classical computers. Unfortunately, Shor's algorithm also solves this problem efficiently, so X25519 alone falls to quantum attacks just like RSA.

ML-KEM (QNSQY's post-quantum key exchange)

ML-KEM (Module Lattice-Based Key Encapsulation Mechanism), standardized as NIST FIPS 203, is based on a completely different kind of math: lattice problems. Imagine a grid of points in hundreds of dimensions. Finding the closest grid point to a given spot in that high-dimensional space is extraordinarily hard, even for quantum computers. No one has found a quantum algorithm that gives a meaningful speedup for lattice problems. QNSQY combines ML-KEM with X25519 so that even if lattice cryptography has an undiscovered weakness, the classical X25519 layer still protects you.

Password Hashing: Why It Matters

When you encrypt a file with a password (rather than a key pair), the tool needs to convert your password into an encryption key. This is called key derivation. A weak key derivation function lets an attacker try billions of password guesses per second. A strong one forces each guess to consume real resources.

GPG's S2K function essentially runs SHA-1 in a loop. An attacker with modern GPUs can try hundreds of millions of passwords per second against S2K. Age's scrypt is much better because it requires a significant amount of memory for each guess, making GPU attacks harder. QNSQY's Argon2id goes further: it requires both large memory (128 MB to 512 MB per guess) and significant CPU time, and it is resistant to side-channel timing attacks. The Password Hashing Competition selected Argon2 in 2015 specifically because it provides the best defense against all known hardware attack strategies.

The Quantum Threat: Why This Matters Now

You might wonder: if quantum computers that can break RSA are still 10 to 20 years away, why worry now? The answer is a strategy called "harvest now, decrypt later."

Intelligence agencies, cybercriminals, and nation-states are recording encrypted internet traffic and collecting encrypted files today. They store this data in massive archives. When quantum computers become powerful enough, they will decrypt everything in those archives retroactively. A file you encrypted with GPG in 2024 could be readable in 2035 or 2040.

This is not a hypothetical concern. The NSA's CNSA 2.0 (Commercial National Security Algorithm Suite) guidance, published in September 2022, explicitly warns about this threat and mandates that all national security systems begin transitioning to post-quantum cryptography. The timeline requires software and firmware signing to use post-quantum algorithms by 2025, and all other uses by 2033.

Tool What Happens After Quantum Computers Arrive
GPG (RSA/ECDH) All past encrypted files become decryptable. Every file ever encrypted with GPG's default algorithms can be opened.
Age (X25519) All past encrypted files become decryptable. X25519 key exchange is broken by Shor's algorithm.
QNSQY (ML-KEM + X25519) Files remain secure. ML-KEM has no known quantum attack, and the hybrid design provides a safety net.
"Harvest Now, Decrypt Later": Adversaries are collecting encrypted data TODAY to decrypt when quantum computers arrive. Your GPG-encrypted files from 2024 and your Age-encrypted backups from 2025 could become readable in the 2030s. The only defense is to encrypt with quantum-resistant algorithms before the data is intercepted.

When to Use Each Tool

Use GPG if:

  • You need to participate in an existing Web of Trust or OpenPGP ecosystem (for example, signing Debian packages or verifying Git commits in a project that requires GPG)
  • You need compatibility with email encryption tools like Thunderbird/Enigmail or Apple Mail with GPGSuite
  • Your data only needs to stay confidential for a short period (less than 5 years) and you accept the quantum risk
  • You are already deeply integrated into GPG workflows and the migration cost is not justified for your threat model

Use Age if:

  • You want the absolute simplest command-line encryption tool available
  • You are scripting data encryption in shell scripts or CI/CD pipelines where you do not need signatures or audit trails
  • Your data sensitivity period is short (less than 5 years)
  • You are already in the Age ecosystem and satisfied with its feature set

Use QNSQY if:

  • Your data needs to stay confidential for more than 5 years (medical records, legal documents, trade secrets, personal archives)
  • You want protection against both current and future threats, including quantum computers
  • You need a graphical interface (QNSQY has a built-in GUI for Linux, macOS, and Windows)
  • You need digital signatures to prove who created or approved a file
  • You need audit logging for compliance (HIPAA, SOC 2, PCI-DSS)
  • You want the strongest available password protection (Argon2id)
  • You need team features like threshold encryption, encrypted vaults, or recipient groups

Can You Use Them Together?

Yes. The tools produce different file formats (.gpg, .age, .qs), so they do not interfere with each other. A practical approach for someone transitioning from GPG or Age is to keep existing encrypted archives as-is for now and start encrypting all new files with QNSQY. Over time, you can re-encrypt your older archives as your schedule allows.

Some users also use GPG specifically for email and Git commit signing (where the OpenPGP ecosystem is hard to replace) while using QNSQY for data encryption (where quantum resistance matters most). This is a reasonable approach because email signatures typically do not need to remain valid for decades, while encrypted files absolutely do.

Migration Path from GPG or Age to QNSQY

If you have an archive of files encrypted with GPG or Age that need long-term protection, here is how to migrate them safely:

  1. Inventory your encrypted files. Find all .gpg and .age files. Note which ones contain data that needs to stay secret for more than 5 years.
  2. Prioritize by sensitivity. Start with files that have the longest required confidentiality period: medical records, financial documents, legal agreements, personal journals, trade secrets.
  3. Decrypt with the original tool. Use gpg -d file.gpg > file.txt or age -d -i key.txt file.age > file.txt to recover the plaintext.
  4. Re-encrypt with QNSQY. Run qnsqy encrypt -i file.txt. Choose a strong passphrase (at least 20 characters or a 5-word passphrase). QNSQY will produce a .qs file protected by ML-KEM + X25519 + AES-256-GCM + Argon2id.
  5. Verify the new file. Decrypt the new .qs file to confirm it works before deleting anything.
  6. Securely delete the plaintext and old encrypted file. Use qnsqy shred file.txt and qnsqy shred file.gpg to overwrite them. Regular deletion (rm, Delete key) leaves data recoverable on disk.

This process does expose the plaintext briefly on disk. If you are in a high-security environment, perform the migration on an encrypted filesystem (LUKS, FileVault, BitLocker) and use QNSQY's built-in shred command to wipe the temporary plaintext as soon as re-encryption is confirmed.

A Note on Open Source vs. Commercial

GPG and Age are fully open source and free. QNSQY has a free tier (ML-KEM-512, ML-DSA-44, 100 MB file limit, basic encrypt/decrypt/sign/verify) and paid tiers for advanced features. The free tier algorithms (ML-KEM-512 + X25519 hybrid) provide NIST Security Level 1, which is equivalent to AES-128 in classical terms. For most personal use, this is more than sufficient. The Pro and Business tiers add higher security levels, batch operations, audit logging, vaults, threshold encryption, and other features aimed at teams and enterprises.

If your concern is purely "will my files be safe from quantum computers," the free tier of QNSQY already gives you that. The paid features are about workflow, compliance, and team collaboration.

Sources

  1. Age encryption specification (age-encryption.org/v1)
  2. OpenPGP Message Format, RFC 4880
  3. NIST FIPS 203: Module-Lattice-Based Key-Encapsulation Mechanism Standard (ML-KEM)
  4. NIST FIPS 204: Module-Lattice-Based Digital Signature Standard (ML-DSA)
  5. NSA CNSA 2.0 FAQ (September 2022)
  6. Password Hashing Competition (Argon2 selected 2015)

Related Articles

Try QNSQY View Security Details

Originally published at quantumsequrity.com/blog/age-gpg-qnsqy-comparison.