求助:
Assertion failed: encoding == BINARY, file src\node.cc, line 1223
在windows下使用node的对称加密报的错
var encipher = crypto.createCipheriv('aes-256-cbc’, setting.cookie_secret_key, iv), encoded = encipher.update(cryptdata, 'base64’, ‘utf8’);
encoded += encipher.final( 'utf8' );
return decoded;