An open API service indexing awesome lists of open source software.

https://github.com/moznion/naisho

:email: :key: Send short encrypted message by GitHub ID
https://github.com/moznion/naisho

Last synced: 11 months ago
JSON representation

:email: :key: Send short encrypted message by GitHub ID

Awesome Lists containing this project

README

          

naisho [![Build Status](https://travis-ci.org/moznion/naisho.svg)](https://travis-ci.org/moznion/naisho) [![wercker status](https://app.wercker.com/status/16e7bca2a67cb41ec7b1ab9c4deeb2bb/s "wercker status")](https://app.wercker.com/project/bykey/16e7bca2a67cb41ec7b1ab9c4deeb2bb)
==

:email: :key: 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 <$HOME/.naisho
address: example@gmail.com
password: PASSWORD
EOS
```

And run the command;

```
$ naisho
```

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 -in
```

Note
--

This program gets ssh-rsa public keys from [https://github.com/user-id.keys](https://github.com/user-id.keys), it uses the __topmost__ key.

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

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

Author
--

moznion ()

License
--

MIT