New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

supercrypt

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

supercrypt

Symmetric encryption library in JavaScript with no dependencies

latest
Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

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...

FAQs

Package last updated on 16 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts