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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
A demo encrypted pastebin client using Veres One DID Documents
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).
Requires Node.js 8.6+.
clone https://github.com/digitalbazaar/did-whisper.git
id-whisper
install
link
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).
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.
-e, --exp
- Expire message in this time period (valid options:
5m
, 1h
, 1d
, 1w
).
Default: 1w
.-s, --store
- URL of the
did-whisper-server
to save messages to.
Default: https://whisper.demo.veres.one
.-n, --no-store
- Do not save the message, just output the encrypted text
to stdout.
Default: false
.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.
See the contribute file!
PRs accepted.
Small note: If editing the Readme, please conform to the standard-readme specification.