Skip to content

Bash version of cipherhub. Make sharing secrets easier.

Notifications You must be signed in to change notification settings

rforte/gitcrypt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

This script is based on the idea of the node.js script cipherhub https://www.npmjs.com/package/cipherhub. I wanted an easy way to copy and paste passwords in slack without exposing (or logging) them in plain-text.

This script will encrypt text using a user's github ssh public key. There are two requirements: you will need to install openssl and the private key to your github public key must be located in ~/.ssh/id_rsa.

Usage

Encrypting some text.

echo "s3cr3tp@ssword" | ./gitcrypt -e rforte

Decrypting some text.

./gitcrypt -d < secret.enc.txt

Examples to make life easier. (mac osx)

echo "s3cr3tp@ssword" | ./gitcrypt -e rforte | pbcopy

Puts encrypted secret into your clipboard for easy pasting into slack/IM/iMessage etc.

Copy encrypted secret that someone sent you into your clipboard and run:

pbpaste | ./gitcrypt -d

About

Bash version of cipherhub. Make sharing secrets easier.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages