Elith日本語版
Menu

How to Move to Post-Quantum Cryptography: The Encryption Tool age Calls for Switching to Post-Quantum Keys (v1.4.0)

In v1.4.0 on December 1, 2026, the file encryption tool age called for moving to post-quantum keys and made them the default for new keys. From primary sources, we cover why to move, what changed, how to tell keys and files apart, how to re-encrypt, passwords, SSH keys and YubiKeys, and three checks.

Published
{minutes} min read
5 min read
Abstract 3D illustration on a background shading from blue to pale pink of a small white key and a larger white key with a light-blue outline joined by thin orange and light-blue lines, with a translucent envelope below

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".

Diagram of how to tell age keys apart and the flow of moving to post-quantum keys, headed: Spot post-quantum keys by prefix and re-encrypt files with new keys. The subtitle says that from v1.4.0, the encryption tool age warns whenever legacy keys are used. On the left is a table of keys. Post-quantum: age1pq1… (public key, ML-KEM-768 plus X25519), AGE-SECRET-KEY-PQ-1… (private key for the above), age1tagpq1… (tagged public key for plugins). Not post-quantum: age1… with no second 1 (legacy X25519 public key), AGE-SECRET-KEY-1… (legacy private key), ssh-ed25519 and ssh-rsa (encrypting to SSH keys). Mostly not post-quantum: plugin and hardware keys such as age1tag1…, age1yubikey1…, age1se1… and age1tpm1…, with others to be checked in each plugin's docs. No need to act: password encryption with age -p. Below the table it says prefixes are a guide and files should be checked with age-inspect. On the right is the migration flow: 1, back up old keys and files (a step added by the editors as a precaution); 2, create a post-quantum key with age-keygen (age-keygen -o pq.txt); 3, re-encrypt with the new key (age -d -i old.txt file.age piped into age -e -i pq.txt -o new.age); 4, verify with age-inspect and decryption (age-inspect new.age). Beside step 3 it says old files already stored by others cannot be protected later. The notes at the bottom say v1.4.0 warns on legacy keys and makes age-keygen default to post-quantum keys, with blocking encryption to legacy keys coming later, and that checking means using age-inspect and a real decryption with the new key, keeping old files until then

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.age

Create 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:

  1. Whether they keep a list of which files are encrypted with which keys.
  2. Whether they are planning to re-encrypt with new keys, starting with the files that must stay secret longest.
  3. 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.

Sources

  1. age v1.4.0 release, post-quantum by default (GitHub, December 1, 2026)
  2. age, age and post-quantum cryptography
  3. A Cryptography Engineer’s Perspective on Quantum Computing Timelines (blog by age's author, April 6, 2026)
  4. age v1.3.0 release (GitHub, December 2025)
  5. rage 0.13.0 release (GitHub)
  6. age-plugin-yubikey releases (GitHub)