encryptor.helper.ts 179 Bytes
const CryptoJS = require('crypto-js');

export const encryptBody = (data: any) => {
  return {
    data: CryptoJS.AES.encrypt(JSON.stringify(data), 'ditohash').toString()
  };
};