Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.14 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.14 KB

ghmsg

Build Status Coverage Status

Command-line interface to encrypt message using github users public ssh keys

Installation

$ npm install -g ghmsg

Usage

encrypt

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

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=="

Why?

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.