1.0.1 • Published 7 years ago

supercrypt v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

supercrypt

A lightweight JavaScript library for symmetric encryption

Key features

  • optimized for binary / file encryption
  • uses crypto standard AES on 128b
  • includes HMAC authentication (EtA - Encrypt then Authenticate) for guaranteed message authenticity
  • written in ES5, ensuring high browser compatibility
  • works with node.js, for developing node.js or browser packages

Installation

Node.js:

npm install supercrypt

Usage

Modular include (using Node.js):

var supercrypt = require('supercrypt');

Using the library:

encryptor = new supercrypt({
    fileSize: 100, //bytes
    saveBlock: function(data, callback) {},
    readBlock: function(size, callback) {},
    progressHandler: function(progressPercentage) {},
    finishHandler: function() {}, //called on success
    errorHandler: function(errCode) {}, //called on error
});

var seedList = [1,2,3,4,5,6,7,8,9,0]; //random array of numbers
encryptor.encrypt('key', seedList);

API Documentation coming soon...

1.0.1

7 years ago

1.0.0

7 years ago