Debian Codegraph @

doc/age-keygen.1.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv='content-type' content='text/html;charset=utf8'>
5 <meta name='generator' content='Ronn-NG/v0.9.1 (http://github.com/apjanke/ronn-ng/tree/0.9.1)'>
6 <title>age-keygen(1) - generate age(1) key pairs</title>
7 <style type='text/css' media='all'>
8 /* style: man */
9 body#manpage {margin:0}
10 .mp {max-width:100ex;padding:0 9ex 1ex 4ex}
11 .mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
12 .mp h2 {margin:10px 0 0 0}
13 .mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
14 .mp h3 {margin:0 0 0 4ex}
15 .mp dt {margin:0;clear:left}
16 .mp dt.flush {float:left;width:8ex}
17 .mp dd {margin:0 0 0 9ex}
18 .mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
19 .mp pre {margin-bottom:20px}
20 .mp pre+h2,.mp pre+h3 {margin-top:22px}
21 .mp h2+pre,.mp h3+pre {margin-top:5px}
22 .mp img {display:block;margin:auto}
23 .mp h1.man-title {display:none}
24 .mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
25 .mp h2 {font-size:16px;line-height:1.25}
26 .mp h1 {font-size:20px;line-height:2}
27 .mp {text-align:justify;background:#fff}
28 .mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
29 .mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
30 .mp u {text-decoration:underline}
31 .mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
32 .mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
33 .mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
34 .mp b.man-ref {font-weight:normal;color:#434241}
35 .mp pre {padding:0 4ex}
36 .mp pre code {font-weight:normal;color:#434241}
37 .mp h2+pre,h3+pre {padding-left:0}
38 ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
39 ol.man-decor {width:100%}
40 ol.man-decor li.tl {text-align:left}
41 ol.man-decor li.tc {text-align:center;letter-spacing:4px}
42 ol.man-decor li.tr {text-align:right;float:right}
43 </style>
44 </head>
45 <!--
46 The following styles are deprecated and will be removed at some point:
47 div#man, div#man ol.man, div#man ol.head, div#man ol.man.
48
49 The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
50 .man-navigation should be used instead.
51 -->
52 <body id='manpage'>
53 <div class='mp' id='man'>
54
55 <div class='man-navigation' style='display:none'>
56 <a href="#NAME">NAME</a>
57 <a href="#SYNOPSIS">SYNOPSIS</a>
58 <a href="#DESCRIPTION">DESCRIPTION</a>
59 <a href="#OPTIONS">OPTIONS</a>
60 <a href="#EXAMPLES">EXAMPLES</a>
61 <a href="#SEE-ALSO">SEE ALSO</a>
62 <a href="#AUTHORS">AUTHORS</a>
63 </div>
64
65 <ol class='man-decor man-head man head'>
66 <li class='tl'>age-keygen(1)</li>
67 <li class='tc'></li>
68 <li class='tr'>age-keygen(1)</li>
69 </ol>
70
71
72
73 <h2 id="NAME">NAME</h2>
74 <p class="man-name">
75 <code>age-keygen</code> - <span class="man-whatis">generate <a class="man-ref" href="age.1.html">age<span class="s">(1)</span></a> key pairs</span>
76 </p>
77 <h2 id="SYNOPSIS">SYNOPSIS</h2>
78
79 <p><code>age-keygen</code> [<code>-pq</code>] [<code>-o</code> <var>OUTPUT</var>]<br>
80 <code>age-keygen</code> <code>-y</code> [<code>-o</code> <var>OUTPUT</var>] [<var>INPUT</var>]<br></p>
81
82 <h2 id="DESCRIPTION">DESCRIPTION</h2>
83
84 <p><code>age-keygen</code> generates a new native <a class="man-ref" href="age.1.html">age<span class="s">(1)</span></a> key pair, and outputs the identity to
85 standard output or to the <var>OUTPUT</var> file. The output includes the public key and
86 the current time as comments.</p>
87
88 <p>If the output is not going to a terminal, <code>age-keygen</code> prints the public key to
89 standard error.</p>
90
91 <h2 id="OPTIONS">OPTIONS</h2>
92
93 <dl>
94 <dt><code>-pq</code></dt>
95 <dd> Generate a post-quantum hybrid ML-KEM-768 + X25519 key pair.
96
97 <p>In the future, this might become the default.</p>
98 </dd>
99 <dt>
100 <code>-o</code>, <code>--output</code>=<var>OUTPUT</var>
101 </dt>
102 <dd> Write the identity to <var>OUTPUT</var> instead of standard output.
103
104 <p>If <var>OUTPUT</var> already exists, it is not overwritten.</p>
105 </dd>
106 <dt><code>-y</code></dt>
107 <dd> Read an identity file from <var>INPUT</var> or from standard input and output the
108 corresponding recipient(s), one per line, with no comments.</dd>
109 <dt><code>--version</code></dt>
110 <dd> Print the version and exit.</dd>
111 </dl>
112
113 <h2 id="EXAMPLES">EXAMPLES</h2>
114
115 <p>Generate a new post-quantum identity:</p>
116
117 <pre><code>$ age-keygen -pq
118 # created: 2025-11-17T13:39:06+01:00
119 # public key: age1pq167[... 1950 more characters ...]
120 AGE-SECRET-KEY-PQ-1K30MYPZAHAXHR22YHH27EGDVLU0QNSUH3DSV7J7NR3X6D9LHXNWSDLTV4T
121 </code></pre>
122
123 <p>Generate a new traditional identity:</p>
124
125 <pre><code>$ age-keygen
126 # created: 2021-01-02T15:30:45+01:00
127 # public key: age1lvyvwawkr0mcnnnncaghunadrqkmuf9e6507x9y920xxpp866cnql7dp2z
128 AGE-SECRET-KEY-1N9JEPW6DWJ0ZQUDX63F5A03GX8QUW7PXDE39N8UYF82VZ9PC8UFS3M7XA9
129 </code></pre>
130
131 <p>Write a new post-quantum identity to <code>key.txt</code>:</p>
132
133 <pre><code>$ age-keygen -pq -o key.txt
134 Public key: age1pq1cd[... 1950 more characters ...]
135 </code></pre>
136
137 <p>Convert an identity to a recipient:</p>
138
139 <pre><code>$ age-keygen -y key.txt
140 age1pq1cd[... 1950 more characters ...]
141 </code></pre>
142
143 <h2 id="SEE-ALSO">SEE ALSO</h2>
144
145 <p><a class="man-ref" href="age.1.html">age<span class="s">(1)</span></a>, <a class="man-ref" href="age-inspect.1.html">age-inspect<span class="s">(1)</span></a></p>
146
147 <h2 id="AUTHORS">AUTHORS</h2>
148
149 <p>Filippo Valsorda <a href="mailto:[email protected]" data-bare-link="true">[email protected]</a></p>
150
151 <ol class='man-decor man-foot man foot'>
152 <li class='tl'></li>
153 <li class='tc'>August 2026</li>
154 <li class='tr'>age-keygen(1)</li>
155 </ol>
156
157 </div>
158 </body>
159 </html>