The file encryption tool age, in v1.4.0 released on December 1, 2026, called on users to move to post-quantum keys (v1.4.0 release). This article explains why to move, what has changed and what users should do now.
Why move: "store now, decrypt later"
age's guidance says that, due to recent updates to quantum cryptanalysis timelines, it no longer believes age's original X25519-based keys are up to the job of keeping files confidential for a long time (age's migration guide). In an April 2026 blog post, age's author explained that their view had changed toward urgently moving to post-quantum cryptography, citing among other things a paper that sharply lowered the estimated quantum resources needed to break 256-bit elliptic curves (the author's blog post). This is the author's risk assessment, not a claim that a quantum computer able to break cryptography already exists.
The problem is "store now, decrypt later". If a file encrypted with a legacy key is public or has been recorded by an attacker, its contents could be read once that scheme is broken in the future. The guide says you should assume the contents of such files could be compromised in the future regardless of whether they are re-encrypted now.
What has changed
age added post-quantum keys in v1.3.0 (December 2025) (v1.3.0 release). The native post-quantum keys are based on HPKE with a hybrid ML-KEM-768 KEM. rage, a compatible tool written in Rust, also supports post-quantum keys as of 0.13.0 (rage 0.13.0).
In v1.4.0, age-keygen, which creates keys, now defaults to post-quantum keys, and any use of legacy keys produces a warning. For now it is only a warning, and legacy keys still work. age and rage plan to block encrypting to legacy keys in future versions.
How to tell keys apart
According to age's guide, keys can be told apart by their prefixes:
| Prefix | Type |
|---|---|
age1pq1…, AGE-SECRET-KEY-PQ-1…, age1tagpq1… |
Post-quantum |
age1… (with no second 1), AGE-SECRET-KEY-1… |
Legacy (not post-quantum) |
ssh-ed25519, ssh-rsa |
SSH keys (not post-quantum) |
age1tag1…, age1yubikey1…, age1se1…, age1tpm1… |
Not post-quantum |
Post-quantum public keys can usually also be recognized by being very long (private keys are the same length as legacy ones). To check how a file is encrypted, use age-inspect in v1.4.0. For a post-quantum file it shows "This file uses post-quantum encryption".

Figure 1: How to tell age keys apart, and the flow of moving to post-quantum keys. Sources: age's migration guide "age and post-quantum cryptography", age v1.4.0 release
Migration steps
The flow, based on the commands in age's guide, is as follows:
age --version
age-keygen -o pq.txt
age-inspect file.age
age -d -i old.txt file.age | age -e -i pq.txt -o new.age
age-inspect new.ageCreate a new key, then decrypt with the old key and re-encrypt with the new key. Because the steps are piped together, no plaintext is left behind as an intermediate file. Before starting, back up the old keys and encrypted files, and do not delete the old files until you have confirmed that the new files decrypt with the new key (editors' note).
The environment variable AGE_PQC_REQUIRED controls how legacy keys are treated. The current default, ALLOW_INSECURE, applies no restriction. ALLOW_ONLY_DECRYPT, the future default, blocks only encryption to legacy keys. YES also blocks decryption of old files, so setting it mid-migration means you can no longer open them. There is also a setting to silence the warnings (AGE_PQC_WARNINGS), but silencing them does not make anything safer.
Passwords, SSH keys and YubiKeys
According to the guide, files encrypted with a password using age -p are already post-quantum and need no action.
On encrypting to SSH keys, the guide says SSH keys were always authentication keys, and that because post-quantum algorithms offer no way to use an authentication key pair to encrypt, encrypting to SSH keys is over. In v1.4.0, Go library functions that generate legacy keys or parse legacy recipients, including SSH keys, were deprecated. Deprecation is only flagged by IDEs and linters and does not change behavior, so they do not stop working right away (the age command itself warns whenever legacy keys are used).
age-plugin-yubikey, the plugin for YubiKeys, gained the ability to generate hybrid post-quantum keys in 0.6.0, released on December 3, 2026 (age-plugin-yubikey releases). According to the guide, the post-quantum part of these keys is stored PIN-protected on the YubiKey, and the public keys and files are secure against quantum computers. However, an attacker with a quantum computer who has both the YubiKey and the PIN could bypass touch enforcement and extract the key. For other plugins, the guide asks users to check each plugin's documentation.
What Japanese companies should check
Companies that store files encrypted with age or similar tools should check the following:
- Whether they keep a list of which files are encrypted with which keys.
- Whether they are planning to re-encrypt with new keys, starting with the files that must stay secret longest.
- Whether, before migrating, they back up the old keys and confirm that the new files decrypt.
Ciphertext that has already left your hands cannot be protected after the fact. What you can do now is protect the files you store from here on with post-quantum keys. For background on the move to post-quantum cryptography, see also our summary of the NSA advisory.
Elith builds AI products for enterprises and conducts advanced research, with AI safety and security as its foundation. We share trends in AI safety and security, along with insights from research and practice, through Elith AI Signal. We will continue to read developments in cryptography and security from primary sources and report on them.

