Decrypt stream content and unzip it
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) {
},
});
a stream
'a stream'
a secure phrase
'a secure phrase or password'
An unexpected error occurred.
It's not a valid stream
Can not a unzip the stream
OK.
{ stream: 'a stream' }