Skip to content
Discussion options

You must be logged in to vote

age - r support specify public key file

Use age -R for recipient files.

$ age-keygen -pq | age -p -o encrypted-identity.txt
$ age -r encrypted-identity.txt file.txt > file.txt.age

‑r encrypt cannot specify encrypted‑identity.txt
‑i decrypt can specify encrypted‑identity.txt
This is strange.

Use age -e -i encrypted‑identity.txt

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ghost
Comment options

@str4d
Comment options

Answer selected by FiloSottile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #687 on February 13, 2026 10:52.