| 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-inspect(1) - inspect age(1) encrypted files</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 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
|
| 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="#JSON-FORMAT">JSON FORMAT</a> |
| 61 |
<a href="#EXAMPLES">EXAMPLES</a> |
| 62 |
<a href="#SEE-ALSO">SEE ALSO</a> |
| 63 |
<a href="#AUTHORS">AUTHORS</a> |
| 64 |
</div> |
| 65 |
|
| 66 |
<ol class='man-decor man-head man head'> |
| 67 |
<li class='tl'>age-inspect(1)</li> |
| 68 |
<li class='tc'></li> |
| 69 |
<li class='tr'>age-inspect(1)</li> |
| 70 |
</ol> |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
<h2 id="NAME">NAME</h2> |
| 75 |
<p class="man-name"> |
| 76 |
<code>age-inspect</code> - <span class="man-whatis">inspect <a class="man-ref" href="age.1.html">age<span class="s">(1)</span></a> encrypted files</span> |
| 77 |
</p> |
| 78 |
<h2 id="SYNOPSIS">SYNOPSIS</h2> |
| 79 |
|
| 80 |
<p><code>age-inspect</code> [<code>--json</code>] [<var>INPUT</var>]</p> |
| 81 |
|
| 82 |
<h2 id="DESCRIPTION">DESCRIPTION</h2> |
| 83 |
|
| 84 |
<p><code>age-inspect</code> reads an <a class="man-ref" href="age.1.html">age<span class="s">(1)</span></a> encrypted file from <var>INPUT</var> (or standard input) |
| 85 |
and displays metadata about it without decrypting.</p> |
| 86 |
|
| 87 |
<p>This includes the recipient types, whether it uses post-quantum encryption, |
| 88 |
and a size breakdown of the file components.</p> |
| 89 |
|
| 90 |
<h2 id="OPTIONS">OPTIONS</h2> |
| 91 |
|
| 92 |
<dl> |
| 93 |
<dt><code>--json</code></dt> |
| 94 |
<dd> Output machine-readable JSON instead of human-readable text.</dd> |
| 95 |
<dt><code>--version</code></dt> |
| 96 |
<dd> Print the version and exit.</dd> |
| 97 |
</dl> |
| 98 |
|
| 99 |
<h2 id="JSON-FORMAT">JSON FORMAT</h2> |
| 100 |
|
| 101 |
<p>When <code>--json</code> is specified, the output is a JSON object with these fields:</p> |
| 102 |
|
| 103 |
<ul> |
| 104 |
<li> |
| 105 |
<p><code>version</code>: |
| 106 |
The age format version (e.g., <code>"age-encryption.org/v1"</code>).</p> |
| 107 |
</li> |
| 108 |
<li> |
| 109 |
<p><code>postquantum</code>: |
| 110 |
Whether the file uses post-quantum encryption: <code>"yes"</code>, <code>"no"</code>, or |
| 111 |
<code>"unknown"</code>.</p> |
| 112 |
</li> |
| 113 |
<li> |
| 114 |
<p><code>armor</code>: |
| 115 |
Boolean indicating whether the file is ASCII-armored.</p> |
| 116 |
</li> |
| 117 |
<li> |
| 118 |
<p><code>stanza_types</code>: |
| 119 |
Array of recipient stanza type strings (e.g., <code>["X25519"]</code> or |
| 120 |
<code>["mlkem768x25519"]</code>).</p> |
| 121 |
</li> |
| 122 |
<li> |
| 123 |
<p><code>sizes</code>: |
| 124 |
Object containing size information in bytes:</p> |
| 125 |
|
| 126 |
<ul> |
| 127 |
<li> |
| 128 |
<code>header</code>: Size of the age header.</li> |
| 129 |
<li> |
| 130 |
<code>armor</code>: Armor encoding overhead (0 if not armored).</li> |
| 131 |
<li> |
| 132 |
<code>overhead</code>: Stream encryption overhead.</li> |
| 133 |
<li> |
| 134 |
<code>min_payload</code>, <code>max_payload</code>: Payload size bounds (currently always matching).</li> |
| 135 |
<li> |
| 136 |
<code>min_padding</code>, <code>max_padding</code>: Padding size bounds (currently always 0).</li> |
| 137 |
</ul> |
| 138 |
|
| 139 |
<p>The fields add up to the total size of the file.</p> |
| 140 |
</li> |
| 141 |
</ul> |
| 142 |
|
| 143 |
<h2 id="EXAMPLES">EXAMPLES</h2> |
| 144 |
|
| 145 |
<p>Inspect an encrypted file:</p> |
| 146 |
|
| 147 |
<pre><code>$ age-inspect secrets.age |
| 148 |
secrets.age is an age file, version "age-encryption.org/v1". |
| 149 |
|
| 150 |
This file is encrypted to the following recipient types: |
| 151 |
- "mlkem768x25519" |
| 152 |
|
| 153 |
This file uses post-quantum encryption. |
| 154 |
|
| 155 |
Size breakdown (assuming it decrypts successfully): |
| 156 |
|
| 157 |
Header 1627 bytes |
| 158 |
Encryption overhead 32 bytes |
| 159 |
Payload 42 bytes |
| 160 |
------------------- |
| 161 |
Total 1701 bytes |
| 162 |
|
| 163 |
Tip: for machine-readable output, use --json. |
| 164 |
</code></pre> |
| 165 |
|
| 166 |
<p>Get JSON output for scripting:</p> |
| 167 |
|
| 168 |
<pre><code>$ age-inspect --json secrets.age |
| 169 |
{ |
| 170 |
"version": "age-encryption.org/v1", |
| 171 |
"postquantum": "yes", |
| 172 |
"armor": false, |
| 173 |
"stanza_types": [ |
| 174 |
"mlkem768x25519" |
| 175 |
], |
| 176 |
"sizes": { |
| 177 |
"header": 1627, |
| 178 |
"armor": 0, |
| 179 |
"overhead": 32, |
| 180 |
"min_payload": 42, |
| 181 |
"max_payload": 42, |
| 182 |
"min_padding": 0, |
| 183 |
"max_padding": 0 |
| 184 |
} |
| 185 |
} |
| 186 |
</code></pre> |
| 187 |
|
| 188 |
<h2 id="SEE-ALSO">SEE ALSO</h2> |
| 189 |
|
| 190 |
<p><a class="man-ref" href="age.1.html">age<span class="s">(1)</span></a>, <a class="man-ref" href="age-keygen.1.html">age-keygen<span class="s">(1)</span></a></p> |
| 191 |
|
| 192 |
<h2 id="AUTHORS">AUTHORS</h2> |
| 193 |
|
| 194 |
<p>Filippo Valsorda <a href="mailto:[email protected]" data-bare-link="true">[email protected]</a></p> |
| 195 |
|
| 196 |
<ol class='man-decor man-foot man foot'> |
| 197 |
<li class='tl'></li> |
| 198 |
<li class='tc'>August 2026</li> |
| 199 |
<li class='tr'>age-inspect(1)</li> |
| 200 |
</ol> |
| 201 |
|
| 202 |
</div> |
| 203 |
</body> |
| 204 |
</html> |