返回资讯中心
外部精选
软件工程
#开发者实时流

Age encryption is now post-quantum by default

age’s job is to keep your files confidential for a long time in the future. Due

Hacker News 最新thisisauserid2026/12/6 · 今天6 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

age and post-quantum cryptography

age’s job is to keep your files confidential for a long time in the future. Due to recent updates to quantum cryptanalysis timelines, we don’t believe age’s original X25519-based keys are up to that job anymore, and you need to take action.

Your files encrypted with legacy keys could become retroactively decryptable in the future, sooner than most of us anticipated. You need to generate new post-quantum keys, and you need to re-encrypt files that were encrypted with legacy non-PQ keys.

If a file encrypted with legacy non-PQ keys is public or anyway recorded by an attacker, you should assume its contents could become compromised in the future regardless of whether it is re-encrypted now.

age v1.3.0 and rage 0.13.0 introduce support for new post-quantum key types. The age v1.4.0 and rage 0.13.0 commands warn about any use of legacy non-PQ keys, and change the age-keygen and rage-keygen default to post-quantum keys. Future versions of age and rage will block encrypting with legacy non-PQ keys.

$ age --version v1.4.0 $ age-keygen -o pq.txt Public key: age1pq18e[... 1950 more characters ...] $ age -d -i old.txt file.age | age -e -i pq.txt -o new.age age: warning: the encrypted file could be decrypted by a future quantum computer, see https://age-encryption.org/pq-warning

You can opt-in to the block by setting AGE_PQC_REQUIRED to ALLOW_ONLY_DECRYPT (the future default) or YES (which will also block decryption). You will be able to opt-out from the block by setting it to ALLOW_INSECURE (the current default).

You can separately opt-out of the warnings by setting AGE_PQC_WARNINGS to SILENCE_I_KNOW_ITS_NOT_SAFE. You can also set it to VERBOSE to get more details about which keys are not post-quantum and need replacing.

Password-encrypted files (age -p) are already post-quantum and require no action. (Concerns about symmetric key sizes and quantum computers are misguided.)

The following prefixes indicate a secure, post-quantum key:

You can usually tell if a public key is post-quantum because it is very long. (Private keys are the same length as legacy non-PQ keys.)

Most other keys are not post-quantum, including:

You can test a key by using it with age v1.4.0 or rage 0.13.0 and AGE_PQC_REQUIRED=YES.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →