light-sodium-signatures

1.3.2 • Public • Published

sodium-signatures

Sodium signatures that works in node and in the browser

npm install sodium-signatures

build status

Usage

var signatures = require('sodium-signatures')

var keys = signatures.keyPair()
var message = new Buffer('a message')

var signature = signatures.sign(message, keys.secretKey)
var verified = signatures.verify(message, signature, keys.publicKey)

console.log('message was verified', verified)

API

keys = signatures.keyPair()

Generate a public key and a secret key.

signature = signature.sign(message, secretKey)

Sign a message.

verified = signature.verify(message, signature, publicKey)

Verify a message and signature.

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i light-sodium-signatures

Weekly Downloads

0

Version

1.3.2

License

MIT

Last publish

Collaborators

  • tknew