I am trying to port a code using MCrypt (which is now deprecated):
const pher = new MCrypt("rijndael-128", "ecb") // ECB, no IV function