| 1 |
.\" generated with Ronn-NG/v0.9.1 |
| 2 |
.\" http://github.com/apjanke/ronn-ng/tree/0.9.1 |
| 3 |
.TH "AGE\-KEYGEN" "1" "August 2026" "" |
| 4 |
.SH "NAME" |
| 5 |
\fBage\-keygen\fR \- generate age(1) key pairs |
| 6 |
.SH "SYNOPSIS" |
| 7 |
\fBage\-keygen\fR [\fB\-pq\fR] [\fB\-o\fR \fIOUTPUT\fR] |
| 8 |
.br |
| 9 |
\fBage\-keygen\fR \fB\-y\fR [\fB\-o\fR \fIOUTPUT\fR] [\fIINPUT\fR] |
| 10 |
.br |
| 11 |
.SH "DESCRIPTION" |
| 12 |
\fBage\-keygen\fR generates a new native age(1) key pair, and outputs the identity to standard output or to the \fIOUTPUT\fR file\. The output includes the public key and the current time as comments\. |
| 13 |
.P |
| 14 |
If the output is not going to a terminal, \fBage\-keygen\fR prints the public key to standard error\. |
| 15 |
.SH "OPTIONS" |
| 16 |
.TP |
| 17 |
\fB\-pq\fR |
| 18 |
Generate a post\-quantum hybrid ML\-KEM\-768 + X25519 key pair\. |
| 19 |
.IP |
| 20 |
In the future, this might become the default\. |
| 21 |
.TP |
| 22 |
\fB\-o\fR, \fB\-\-output\fR=\fIOUTPUT\fR |
| 23 |
Write the identity to \fIOUTPUT\fR instead of standard output\. |
| 24 |
.IP |
| 25 |
If \fIOUTPUT\fR already exists, it is not overwritten\. |
| 26 |
.TP |
| 27 |
\fB\-y\fR |
| 28 |
Read an identity file from \fIINPUT\fR or from standard input and output the corresponding recipient(s), one per line, with no comments\. |
| 29 |
.TP |
| 30 |
\fB\-\-version\fR |
| 31 |
Print the version and exit\. |
| 32 |
.SH "EXAMPLES" |
| 33 |
Generate a new post\-quantum identity: |
| 34 |
.IP "" 4 |
| 35 |
.nf |
| 36 |
$ age\-keygen \-pq |
| 37 |
# created: 2025\-11\-17T13:39:06+01:00 |
| 38 |
# public key: age1pq167[\|\.\|\.\|\. 1950 more characters \|\.\|\.\|\.] |
| 39 |
AGE\-SECRET\-KEY\-PQ\-1K30MYPZAHAXHR22YHH27EGDVLU0QNSUH3DSV7J7NR3X6D9LHXNWSDLTV4T |
| 40 |
.fi |
| 41 |
.IP "" 0 |
| 42 |
.P |
| 43 |
Generate a new traditional identity: |
| 44 |
.IP "" 4 |
| 45 |
.nf |
| 46 |
$ age\-keygen |
| 47 |
# created: 2021\-01\-02T15:30:45+01:00 |
| 48 |
# public key: age1lvyvwawkr0mcnnnncaghunadrqkmuf9e6507x9y920xxpp866cnql7dp2z |
| 49 |
AGE\-SECRET\-KEY\-1N9JEPW6DWJ0ZQUDX63F5A03GX8QUW7PXDE39N8UYF82VZ9PC8UFS3M7XA9 |
| 50 |
.fi |
| 51 |
.IP "" 0 |
| 52 |
.P |
| 53 |
Write a new post\-quantum identity to \fBkey\.txt\fR: |
| 54 |
.IP "" 4 |
| 55 |
.nf |
| 56 |
$ age\-keygen \-pq \-o key\.txt |
| 57 |
Public key: age1pq1cd[\|\.\|\.\|\. 1950 more characters \|\.\|\.\|\.] |
| 58 |
.fi |
| 59 |
.IP "" 0 |
| 60 |
.P |
| 61 |
Convert an identity to a recipient: |
| 62 |
.IP "" 4 |
| 63 |
.nf |
| 64 |
$ age\-keygen \-y key\.txt |
| 65 |
age1pq1cd[\|\.\|\.\|\. 1950 more characters \|\.\|\.\|\.] |
| 66 |
.fi |
| 67 |
.IP "" 0 |
| 68 |
.SH "SEE ALSO" |
| 69 |
age(1), age\-inspect(1) |
| 70 |
.SH "AUTHORS" |
| 71 |
Filippo Valsorda \fIage@filippo\.io\fR |