1
这是我的代码:为什么节点AES128密码的输出长度为32字节?
var crypto = require('crypto')
function aese (key) {
return crypto.createCipher('aes128', key)
}
var x1 = crypto.randomBytes(16)
var y1 = crypto.randomBytes(16)
var a = aese(y1)
a.write(x1)
a.end()
var ct = a.read()
console.log(ct.length); //should be 16 but is 32
什么是'temp'? –
如果我不得不猜测,我会说这是一个IV。 – delnan
对不起,应该是'ct' – stanm87