const encrypt = (buffer, key) => { // Create an initialization vector const iv = crypto.randomBytes(16); // Create a