开发者社区> 镜像站> NPM> sodium2supercop
sodium2supercop
Convert libsodium key pairs to ed25519-supercop key pairs
Last updated 2 years ago by emilbayes .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sodium2supercop 
SYNC missed versions from official npm registry.

sodium2supercop

Convert libsodium key pairs to ed25519-supercop key pairs

Usage

var s2s = require('sodium2supercop')

var sk = // Buffer ...
var pk = // Buffer ...

var keypair = s2s(sk, pk)

Note that this transformation is one-way, ie. you cannot convert supercop keys to libsodium compatible keys.

API

var {publicKey, secretKey} = convert(secretKeyBuf, publicKeyBuf)

Convert libsodium generated secretKeyBuf and publicKeyBuf to a ed25519-supercop compatible key pair. This will put secretKeyBuf though a one-way transformation and copy the publicKeyBuf into a new Buffer for publicKey.

Install

npm install sodium2supercop

License

ISC

Current Tags

  • 1.0.0                                ...           latest (2 years ago)

1 Versions

  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (0)
None