Debian Codegraph @

doc/age-keygen.1.ronn

raw
1 age-keygen(1) -- generate age(1) key pairs
2 ====================================================
3
4 ## SYNOPSIS
5
6 `age-keygen` [`-pq`] [`-o` <OUTPUT>]<br>
7 `age-keygen` `-y` [`-o` <OUTPUT>] [<INPUT>]<br>
8
9 ## DESCRIPTION
10
11 `age-keygen` generates a new native age(1) key pair, and outputs the identity to
12 standard output or to the <OUTPUT> file. The output includes the public key and
13 the current time as comments.
14
15 If the output is not going to a terminal, `age-keygen` prints the public key to
16 standard error.
17
18 ## OPTIONS
19
20 * `-pq`:
21 Generate a post-quantum hybrid ML-KEM-768 + X25519 key pair.
22
23 In the future, this might become the default.
24
25 * `-o`, `--output`=<OUTPUT>:
26 Write the identity to <OUTPUT> instead of standard output.
27
28 If <OUTPUT> already exists, it is not overwritten.
29
30 * `-y`:
31 Read an identity file from <INPUT> or from standard input and output the
32 corresponding recipient(s), one per line, with no comments.
33
34 * `--version`:
35 Print the version and exit.
36
37 ## EXAMPLES
38
39 Generate a new post-quantum identity:
40
41 $ age-keygen -pq
42 # created: 2025-11-17T13:39:06+01:00
43 # public key: age1pq167[... 1950 more characters ...]
44 AGE-SECRET-KEY-PQ-1K30MYPZAHAXHR22YHH27EGDVLU0QNSUH3DSV7J7NR3X6D9LHXNWSDLTV4T
45
46 Generate a new traditional identity:
47
48 $ age-keygen
49 # created: 2021-01-02T15:30:45+01:00
50 # public key: age1lvyvwawkr0mcnnnncaghunadrqkmuf9e6507x9y920xxpp866cnql7dp2z
51 AGE-SECRET-KEY-1N9JEPW6DWJ0ZQUDX63F5A03GX8QUW7PXDE39N8UYF82VZ9PC8UFS3M7XA9
52
53 Write a new post-quantum identity to `key.txt`:
54
55 $ age-keygen -pq -o key.txt
56 Public key: age1pq1cd[... 1950 more characters ...]
57
58 Convert an identity to a recipient:
59
60 $ age-keygen -y key.txt
61 age1pq1cd[... 1950 more characters ...]
62
63 ## SEE ALSO
64
65 age(1), age-inspect(1)
66
67 ## AUTHORS
68
69 Filippo Valsorda <[email protected]>