var crypto = require('crypto');
var crc = require('crc32');
var ciphers = crypto.getCiphers();
var algorithm = 'aes-128-cbc';
var data = '斯蒂芬斯蒂芬斯蒂芬斯蒂芬是';
//var data = [0,1,2,3,4,5,6,7,8,9];
var _key = new Buffer('sdfsdfsdsdfsdf');
var encoding = 'utf-8';
var arr = [255,222,128,10,6,5,8,159,11,45,87,78,34,67,93,62];
var iv = Buffer(arr);
var cipherEncoding = 'binary';
var cipher = crypto.createCipheriv(algorithm,_key,iv);
var cipherChunks ;
cipherChunks = cipher.update(data,encoding,cipherEncoding);
cipherChunks += cipher.final(cipherEncoding);
var crc32 = crc(cipherChunks);
var crc = require('crc32');
var ciphers = crypto.getCiphers();
var algorithm = 'aes-128-cbc';
var data = '斯蒂芬斯蒂芬斯蒂芬斯蒂芬是';
//var data = [0,1,2,3,4,5,6,7,8,9];
var _key = new Buffer('sdfsdfsdsdfsdf');
var encoding = 'utf-8';
var arr = [255,222,128,10,6,5,8,159,11,45,87,78,34,67,93,62];
var iv = Buffer(arr);
var cipherEncoding = 'binary';
var cipher = crypto.createCipheriv(algorithm,_key,iv);
var cipherChunks ;
cipherChunks = cipher.update(data,encoding,cipherEncoding);
cipherChunks += cipher.final(cipherEncoding);
var crc32 = crc(cipherChunks);