function decrypt(data, secretKey, algorithm) {
  const decipher = crypto.createDecipher(algorithm, secretKey);
  let decrypted = decipher.update(data, 'hex', 'utf-8');
  decrypted += decipher.final('utf-8');
  return decrypted;
} // decrypt
/**
 * Decrypt encrypted data using passed in secretKey and algorithm
 * @param  {String} data -  Data to be decrypted
 * @param  {String} secretKey - Secret key that was used from encryption
 * @param  {String} algorithm - Name of the encryption algorithm
 * @returns {String} - encrypted data
 */
Decrypt encrypted data using passed in secretKey and algorithm
@param  {String} data -  Data to be decrypted
@param  {String} secretKey - Secret key that was used from encryption
@param  {String} algorithm - Name of the encryption algorithm
@returns {String} - encrypted data
Decrypt encrypted data using passed in secretKey and algorithm @param { String } data - Data to be decrypted @param { String } secretKey - Secret key that was used from encryption @param { String } algorithm - Name of the encryption algorithm @returns { String } - encrypted data
function decrypt(data, secretKey, algorithm) {
  const decipher = crypto.createDecipher(algorithm, secretKey);
  let decrypted = decipher.update(data, 'hex', 'utf-8');
  decrypted += decipher.final('utf-8');
  return decrypted;
} 
function decrypt ( data , secretKey , algorithm ) { const decipher = crypto . createDecipher ( algorithm , secretKey ) ; let decrypted = decipher . update ( data , 'hex' , 'utf-8' ) ; decrypted += decipher . final ( 'utf-8' ) ; return decrypted ; }
Decrypt encrypted data using passed in secretKey and algorithm
 @param  {String} data -  Data to be decrypted
 @param  {String} secretKey - Secret key that was used from encryption
 @param  {String} algorithm - Name of the encryption algorithm
 @returns {String} - encrypted data
Decrypt encrypted data using passed in secretKey and algorithm @param { String } data - Data to be decrypted @param { String } secretKey - Secret key that was used from encryption @param { String } algorithm - Name of the encryption algorithm @returns { String } - encrypted data
// decrypt