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.
age-keygen now defaults to post-quantum keys. age now warns on any use of legacy non-PQ keys.
See age and post-quantum cryptography for more details.
New stanzas for hardware plugin recipients
Encrypting to age1tag1... and age1tagpq1... recipients now produces the new p256tagv2 and mlkem768p256tagv2 stanzas. The tag in the previous stanzas made it possible to link files encrypted to the same recipient by brute-forcing 2³² values, without knowledge of the recipient.
Hardware plugins need to be updated to decrypt files encrypted with this version.
The new Recipient.TagV2 method computes the new tag for plugin implementations, and C2SP has the specification.
Go API deprecations
Functions that generate legacy keys, or that parse legacy recipients, are now deprecated: GenerateX25519Identity, ParseX25519Recipient, ParseRecipients, agessh.ParseRecipient, agessh.NewEd25519Recipient, agessh.NewRSARecipient, tag.ParseRecipient, tag.NewClassicRecipient, and plugin.EncodeX25519Recipient.
The new ParsePostQuantumRecipients and tag.ParseHybridRecipient only support post-quantum recipients.
Note that Go deprecations are surfaced by IDEs and linters but don't stop you from using deprecated functions.
ScryptRecipient now returns the postquantum label, and the agessh recipients have String methods.
age-inspect
age-inspect(1) now recognizes the recipient types of more plugins, and ignores the random stanzas that rage adds to every file, which made them all report "unknown".
Fixes and hardening
The armor reader no longer buffers a line of unbounded length before rejecting it (#756).
Encrypt now refuses to write headers with more than 1024 recipients, which could never be decrypted (#767).
age(1) now refuses to write to the same file it is reading from standard input (#766).
Control characters in plugin messages and errors are now replaced before being printed to the terminal (#769).
Decryption now makes no allocations per chunk (#753).