@flaze/git-vault
v0.0.1
Published
A tool that allows you to encrypt files in your git repository.
Readme
git-vault (UNSTABLE - DEVELOPMENT)
A tool that allows you to encrypt files in your git repository.
Installation
Install locally:
$ yarn add @flaze/git-vaultInstall globally:
$ yarn global install @flaze/git-vaultDevelopment
Install all the packages of needed to run git-vault:
yarn installFor local development you can run:
yarn dev <args>To install git-vault globally for development you can run:
# Linux
$ yarn i
# Windows
$ yarn i:winUsage
To initialize git-vault in a git repository run:
# Install git hooks, generate a key and display it to the user.
# git-vault will now automatically encrypt files on git commit.
# git-vault will also automatically decrypt files on git pull.
$ git-vault initIf you already have a key, you can provide that key to the init command:
# Install git hooks and store the provided key
$ git-vault init --key <key>Because encrypted files must be ignored, you can add all the files you want to encrypt to your .gitignore file. To make sure git-vault knows which files to encrypt make sure to surround those files with #start:enc and #end:enc.
# .gitignore
#start:enc
secret.txt
#end:encTo encrypt or decrypt files manually, you can run:
$ git-vault encrypt --key <key>
$ git-vault decrypt --key <key>To generate a key manually, you can run:
$ git-vault generateTo view or set the current key, you can run:
# You can also set a new key if you provide --key <key>
$ git-vault key