teamcrypt
Encrypt data for secure sharing between teammates.
Installation + Setup
git clone https://github.com/vet/teamcrypt.git
cp teamcrypt/teamcrypt /usr/local/bin
Also, you'll have to set up an environment variable TEAMCRYPT_SECRET
. You can export this in your ~/.bashrc
or ~/.bash_profile
:
export TEAMCRYPT_SECRET="MY-TEAMS-SECRET"
Note, this secret must be the same for all users you plan to share with.
HISTCONTROL
You'll probably also want to use the following history config, so you can keep all the encrypted passwords out of your history. You can export this in your ~/.bashrc
or ~/.bash_profile
:
export HISTCONTROL=ignorespace
Usage
teamcrypt, version 1.0.0
usage: man [-e encrypt] [-d decrypt]
e encrypt : encrypt the stdin and output result to stdout
d decrypt : decrypt the stdin and output result to stdout
Examples
Note, I am using a space in front of all commands using teamcrypt to keep them out of our history file
Sharing Passwords
echo "secret-password" | teamcrypt -e
> U2FsdGVkX18/mczXJ0tobBq9yd2tCfmQgRPxUuwzUn3yIEEeENVjHw4vqvBOLa5D
echo "U2FsdGVkX18/mczXJ0tobBq9yd2tCfmQgRPxUuwzUn3yIEEeENVjHw4vqvBOLa5D" | teamcrypt -d
> secret-password
Sharing Files
cat attack-plans.txt | teamcrypt -e > attack-plans.txt.enc
cat attack-plans.txt.enc | teamcrypt -d
> kill all humans