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
- Host: GitHub
- URL: https://github.com/moznion/naisho
- Owner: moznion
- Created: 2015-02-04T09:41:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-03-06T01:55:51.000Z (over 8 years ago)
- Last Synced: 2024-10-17T23:55:48.059Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 181 KB
- Stars: 69
- Watchers: 6
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
naisho [](https://travis-ci.org/moznion/naisho) [](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