digitalbazaar/did-whisper

Name: did-whisper

Owner: Digital Bazaar, Inc.

Description: DID whisper

Created: 2018-03-19 16:21:22.0

Updated: 2018-03-19 16:21:24.0

Pushed: 2018-03-21 17:03:06.0

Homepage: null

Size: 10

Language: null

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

DID Whisper Client (did-whisper)

A demo encrypted pastebin client using Veres One DID Documents

Table of Contents
Security

Please note that this is a demo / proof-of-concept only, and makes no security guarantees.

Also, sent messages are anonymous (the recipient has no way of knowing who sent the message).

Install

Requires Node.js 8.6+.

clone https://github.com/digitalbazaar/did-whisper.git
id-whisper
install
link
Usage

The client is designed to work with a did-whisper-server instance running somewhere, either locally on your machine or on some server.

If you're offline or prefer not to use a server to store the encrypted messages (so you can pass along just their URLs), you can encrypt and decrypt raw text directly (using the -n flag to encrypt).

Encrypting messages

To encrypt a message (and receive a link to where it's stored):

whisper encrypt <did> [message] [options]

The message can be included inline, or redirected from stdin. For example:

d-whisper encrypt did:v1:test:nym:2pfPix2tcwa7gNoMRxdcHbEyFGqaVBPNntCsDZexVeHX < message.txt
://localhost:5000/whisper/HkVxJRL5M

would encrypt the contents of the file message.txt.

The did-whisper client automatically saves the encrypted message to a did-whisper-server service (unless it cannot be reached, or the -n option is passed in.

Encrypting Options
Decrypting messages

If you just have the message URL:

whisper decrypt <saved message url>

If you have the raw encrypted message and know the recipient DID (it must be a locally stored DID, since the client uses the private key stored in the DID Document):

whisper decrypt <did> [message]

The encrypted message can be included inline, or redirected from stdin.

Contribute

See the contribute file!

PRs accepted.

Small note: If editing the Readme, please conform to the standard-readme specification.

License

New BSD License (3-clause)


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.