JSPM

ecckey

0.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q24472F
  • License MIT

A wrapper around SJCL's ECC Implementation, that lets you password protect your ecc keys.

Package Exports

  • ecckey

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ecckey) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status Coverage Status

ecckey

A wrapper around SJCL's ECC Implementation, that lets you password protect your ecc keys. Includes SJCL as ecckey.sjcl.

Installation

npm install ecckey

Quick Usage

var ecckey = require("ecckey");

var plaintext = "hello world";
var password = "super secret secure password";

// Generating keys
var keys = ecckey.generate(384, password);

// Encrypting text
var cipher = ecckey.encrypt(password, keys, plaintext);

// Decrypting cipher
var decrypted = ecckey.decrypt(password, keys, cipher);

console.log(decrypted) // => "hello world"