Skip to content

Usage of -e -i #337

Answered by FiloSottile
puenka asked this question in Q&A
Sep 30, 2021 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Is this equivalent to creating a public key from the identities and encrypting the file with those keys as recipients?

Yep!

Do these two produce the same output?

They do!

The idea of -e -i is precisely to make the case you describe—encrypting something to decrypt it with an identity you have available—easier, avoiding the need for a .pub file.

Happy to look at documentation suggestions to make this clearer!

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Suhail9718
Comment options

Answer selected by puenka
Comment options

You must be logged in to vote
1 reply
@FiloSottile
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants