Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
A format for encrypting a private message to many parties.
`private-box` is designed according to the [auditdrivencrypto design process](https://github.com/crypto-browserify/crypto-browserify/issues/128)

## Implementations
* javascript/node.js this repo.
* C# [Cinorid/PrivateBox](https://github.com/Cinorid/PrivateBox)

## API

### encrypt (plaintext Buffer, recipients Array<curve25519_pk>)
Expand Down Expand Up @@ -33,7 +37,7 @@ with its secret to produce ephemeral shared keys (`shared_keys[1..n]`).
Then, private-box concatenates `body_key` with the number of recipients,
encrypts that to each shared key, and concatenates the encrypted body.

```
``` js
function encrypt (plaintext, recipients) {
var ephemeral = keypair()
var nonce = random(24)
Expand Down