function decode(
  ciphertext: string,
  algorithm: string,
  key: Buffer,
  iv: Buffer