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