function generateGatewayKey(token, password) {
  const cipher = crypto.createCipheriv('aes-128-cbc', password, AQARA_IV);
  return cipher.update(token, 'ascii', 'hex');
  /* const cipher = crypto.createCipheriv('aes128', password, Buffer.from('17996d093d28ddb3ba695a2e6f58562e', 'hex'));
  let encodedString = cipher.update(token, 'utf8', 'hex');
  encodedString += cipher.final('hex');
  return encodedString.substring(0, 32); */
}
@description Generate a gateway key.
@param {string} token - Gateway token.
@param {string} password - Gateway password.
@returns {string} - Return the key.
@example
const key = generateGatewayKey('KLJKJKlkj', 'KJSKDLFJ');