Tools for using GPG/PGP encryption to securely store secret files (such as a password file) in a repository.
This is a repository used by the team_name_here to share various encrypted secrets. The secrets file are encrypted with GPG.
- Clone this repo
- Download the GPG software GPGTools from https://gpgtools.org/
- Generate your GPG Keys
- Open GPG Keychain
- Generate a new keypair. Defaults are fine but make sure to use a passphrase and use your team_name_here e-mail address
- Export the public key saving the file as FirstName_LastName.asc in the pubkeys folder of the clone of this repo
- Push your new key to git (If you can't push, ask someone who can to add you)
- Ask a team member to recrypt the passwords files with your key included
- View, Decrypt, Encrypt and Recrypt as you like
cd secrets
./encrypt.sh file.txt
cd secrets
./decrypt.sh file.txt.gpg
result is: new file named: DECRYPTED_file.txt
cd secrets
./view.sh file.txt
Installing this VIM plugin should make decryption and re-encryption completely seamless.
git clone https://github.com/jamessan/vim-gnupg.git
cd vim-gnupg
cp -rv plugin ~/.vim
Note: This needs to be done by a team member who's key is already in the file
cd secrets
./recrypt.sh top-secret.txt.gpg
This will pull any new keys, import them in your gpg store and encrypt the file with all the public keys giving access to any of the owners of said keys.
This will need to be done for every file you want to grant access to. (so all of them)