Confused about the underlying encryption workflow. Can you add some documentation?
- 主要言語
- C++
- スター
- 9.9k
- フォーク
- 544
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
#Hi, I'm trying to understand how git-crypt actually encrypts and decrypts files. I have 2 questions:
1. after calling `git-crypt init -k FOO` there is no .git-crypt directory yet, but I see the FOO key in `.git/git-crypt/keys`. I have the impression that git-crypt will (eventually) encrypt my files with the .git/git-crypt/keys/FOO key, but that I can optionally protect the FOO key by calling `git-crypt add-gpg-user -k FOO MY_GPG_USER_ID`. Is that correct? This means that there are 2 different keys in play: MY_GPG_USER_ID is the gpg-key that protects the FOO key, right?
2. Alternatively, I can export the .git/git-crypt/keys/FOO key (which simply means making a copy of this file), and then any collaborator can use it in a call to `git-crypt unlock /path/to/key`. If the collaborator copies the exported key to their own `.git/git-crypt/keys` directory (instead of specifying it in the call to `git-crypt unlock`), will that work too?
Imho it would help a lot to document these basic mechanism underlying git-crypt. For some reason, the sentence that confused me the most was "Share the repository with others (or with yourself) using GPG" (it somehow gave me the impression that the GPG key itself was used for the encryption of files in the repository).
ps I would also document the global gpg.program git option
コントリビューションガイド
評価
この issue はまだ評価されていません。