项目作者: victoryw

项目描述 :
about crypt of secret file in the repo
高级语言: Shell
项目地址: git://github.com/victoryw/repo-crypt.git
创建时间: 2017-05-02T05:50:33Z
项目社区:https://github.com/victoryw/repo-crypt

开源协议:MIT License

下载


repo-crypt

git-crypt

git-crypt initthe reop to crypt.
.gitattributes to specify file to crypt.

  1. secretfile filter=git-crypt diff=git-crypt
  2. *.key filter=git-crypt diff=git-crypt
  3. .gitattributes !filter !diff

secretfile/*.key is the file pattern.
“.gitattributes !filter !diff” means this .gitattributes should not be locked.

when the file to be locked is in the sub-folder,
should put the .gitattributes in the same sub-folder which is like the git-crypt.

propose to use the key generated by git-crypt and stored in the other folder.

  1. git-crypt export-key /path/to/keyfile
  2. as example git-crypt export-key git-crypt-key/keyfile

and then should use the

  1. git-crypt unlock /path/to/keyfile
  2. as example: git-crypt unlock git-crypt-key/keyfile

but i don’t know how to use special key to encrypt each file.

the file will be automatically encrypted after git push to repo.

blackbox

https://github.com/StackExchange/blackbox

about GPG

GPG