1AGE-KEYGEN(1) AGE-KEYGEN(1)
2
3
4
6 age-keygen - generate age(1) key pairs
7
9 age-keygen [-o OUTPUT]
10 age-keygen -y [-o OUTPUT] [INPUT]
11
13 age-keygen generates a new native age(1) key pair, and outputs the
14 identity to standard output or to the OUTPUT file. The output includes
15 the public key and the current time as comments.
16
17 If the output is not going to a terminal, age-keygen prints the public
18 key to standard error.
19
21 -o, --output=OUTPUT
22 Write the identity to OUTPUT instead of standard output.
23
24 If OUTPUT already exists, it is not overwritten.
25
26 -y Read an identity file from INPUT or from standard input and out‐
27 put the corresponding recipient(s), one per line, with no com‐
28 ments.
29
30 --version
31 Print the version and exit.
32
34 Generate a new identity:
35
36
37
38 $ age-keygen
39 # created: 2021-01-02T15:30:45+01:00
40 # public key: age1lvyvwawkr0mcnnnncaghunadrqkmuf9e6507x9y920xxpp866cnql7dp2z
41 AGE-SECRET-KEY-1N9JEPW6DWJ0ZQUDX63F5A03GX8QUW7PXDE39N8UYF82VZ9PC8UFS3M7XA9
42
43
44
45 Write a new identity to key.txt:
46
47
48
49 $ age-keygen -o key.txt
50 Public key: age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p
51
52
53
54 Convert an identity to a recipient:
55
56
57
58 $ age-keygen -y key.txt
59 age1ql3z7hjy54pw3hyww5ayyfg7zqgvc7w3j2elw8zmrj2kg5sfn9aqmcac8p
60
61
62
64 age(1)
65
67 Filippo Valsorda age@filippo.io
68
69
70
71 September 2021 AGE-KEYGEN(1)