AES256.decryptStream()

Decrypt stream content and unzip it

Usage

Hover over inputs/exits for more info.

var AES256 = require('machinepack-aes256');


// Decrypt stream content and unzip it

AES256.decryptStream({

stream: 'a stream',

secret: 'a secure phrase or password',

}).exec({

// An unexpected error occurred.

error: function (err) {

 

},

// It's not a valid stream

errorNotStream: function () {

 

},

// Can not a unzip the stream

errorUnzip: function () {

 

},

// OK.

success: function (result) {

 

},

});

Inputs

stream required

a stream

'a stream'
secret required

a secure phrase

'a secure phrase or password'

Exits

error

An unexpected error occurred.

errorNotStream

It's not a valid stream

errorUnzip

Can not a unzip the stream

success

OK.

{ stream: 'a stream' }