Skip to content
/ naisho Public

πŸ“§ πŸ”‘ Send short encrypted message by GitHub ID

Notifications You must be signed in to change notification settings

moznion/naisho

Folders and files

NameName
Last commit message
Last commit date

Latest commit

06b1701 Β· Feb 6, 2015

History

21 Commits
Feb 4, 2015
Feb 4, 2015
Feb 6, 2015
Feb 6, 2015
Feb 4, 2015
Feb 5, 2015
Feb 4, 2015
Feb 6, 2015
Feb 4, 2015
Feb 4, 2015
Feb 4, 2015

Repository files navigation

naisho Build Status wercker status

πŸ“§ πŸ”‘ Send short encrypted message by GitHub ID

Description

Encrypt the short message by a ssh-rsa public key on GitHub, and send it by a mail to user's email address which is written on GitHub profile page.

It requires gmail account and authentication information, because this program sends email via gmail.

Usage

Put the configuration file of gmail on your home directory;

cat <<EOS >$HOME/.naisho
address: example@gmail.com
password: PASSWORD
EOS

And run the command;

$ naisho <Target GitHub ID> <Message>

Then it sends the email to target GitHub user's mail address (it is on profile page) with an attachment which contains encrypted message.

When you want to read a received attachment, you just execute following command;

$ openssl rsautl -decrypt -oaep -inkey <Your Secret Key> -in <Attachment>

Note

This program gets ssh-rsa public keys from https://github.com/user-id.keys, it uses the topmost key.

And gets a target email address from https://github.com/user-id

Length of the secret message differs depending on strength of the used key.

Author

moznion (moznion@gmail.com)

License

MIT