You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the argument to `-R` (or `-i`) is `-`, the file is read from standard input.
231
231
232
+
### Post-quantum keys
233
+
234
+
To generate hybrid post-quantum keys, which are secure against future quantum
235
+
computer attacks, use the `-pq` flag with `age-keygen`. This may become the
236
+
default in the future.
237
+
238
+
Post-quantum identities start with `AGE-SECRET-KEY-PQ-1...` and recipients with
239
+
`age1pq1...`. The recipients are unfortunately ~2000 characters long.
240
+
241
+
```
242
+
$ age-keygen -pq -o key.txt
243
+
$ age-keygen -y key.txt > recipient.txt
244
+
$ age -R recipient.txt example.jpg > example.jpg.age
245
+
$ age -d -i key.txt example.jpg.age > example.jpg
246
+
```
247
+
248
+
Support for post-quantum keys is built into age v1.3.0 and later. Alternatively,
249
+
the `age-plugin-pq` binary can be installed and placed in `$PATH` to add support
250
+
to any version and implementation of age that supports plugins. Recipients will
251
+
work out of the box, while identities will have to be converted to plugin
252
+
identities with `age-plugin-pq -identity`.
253
+
232
254
### Passphrases
233
255
234
256
Files can be encrypted with a passphrase by using `-p/--passphrase`. By default age will automatically generate a secure passphrase. Passphrase protected files are automatically detected at decrypt time.
0 commit comments