nodeJS createCipheriv panjang kunci tidak valid

let key = crypto.createHash('sha256').update(String(secret)).digest('base64').substr(0, 32);
Scary Shrew