Command-line interface to encrypt message using github users public ssh keys
$ npm install -g ghmsg
Encrypt a message with an user's public ssh key, retrieved from Github. If user has multiple keys, the first one will be used.
$ ghmsg encrypt <user> -m <message>
$ ghmsg encrypt joawan -m "hello world"
Decrypt a message with your private key, that matches public key on Github.
Defaults to ~/.ssh/id_rsa
.
$ ghmsg decrypt -m <message> -k <path to key>
$ ghmsg decrypt -m "NK33pIHyNlAwcJ1...0w=="
You don't want to send passwords and other sensitive data in plain text for everyone to see.
Why not use keybase.io? Keybase is still invite only, and it is yet another service to set up and configure. This uses your Github account where you should already have an ssh key.