Usage of -e -i #337
-
I'm a bit confused by what's actually happening when using The man-page states the following:
What kind of encryption does this run? Is this equivalent to creating a public key from the identities and encrypting the file with those keys as recipients? Or is this actually a different kind of encryption algorithm, which the documentation implies (as using the identity "as a symmetric key" is something different than using it "like a list of symmetric keys", where I would understand the latter as the procedure outlined above.) What it definitely doesn't do is using the file itself as a key, in the sense that a copy of the file itself is needed to decrypt. This is clear by the first half of the documentation, but the second half kind of contradicts this, doesn't it? A related question is the recommended storage of keyfiles. The generated keyfile is an identity file with a public key as a comment. Let's call this file
or
to encrypt a file. Do these two produce the same output? As there is some randomness involved, I cannot simply check the output files with checksums. Should I keep a separate Maybe these questions even deserve addressing/clarification in the documentation? If I understand what's happening, I'll have my try to incorporate it there! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Yep!
They do! The idea of Happy to look at documentation suggestions to make this clearer! |
Beta Was this translation helpful? Give feedback.
-
Ok that's good! I suggest removing the above paragraph entirely from the
Also, it might be useful to link the RECIPIENTS/IDENTITIES (only the latter in my suggestion) to the corresponding section as is done where it is mentioned elsewhere. In
Do you prefer discussing these changes in here or should I create a PR immediately to continue there? |
Beta Was this translation helpful? Give feedback.
Yep!
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!