Skip to content

lw7360/ecckey

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published