Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   let pro_data = Date.now() + "|pad_PPPPPPPPPPPPPPPPPPPPPP|mo";
  2.   if (checkout) {
  3.     pro_data += "|cob";
  4.   }
  5.   let rand_array = makeRandom(new Uint8Array(16));
  6.   let pooky_pro_iv = Array.from(rand_array, makeLetters).join("");
  7.   let data = aesjs.utils.utf8.toBytes(pro_data);
  8.   let encryptedBytes = new aesjs.ModeOfOperation.cbc(key, rand_array).encrypt(aesjs.padding.pkcs7.pad(data));
  9.   let pooky_pro_data = aesjs.utils.hex.fromBytes(encryptedBytes);
  10.   let pooky_pro = pooky_pro_iv + pooky_pro_data;
  11.   return pooky_pro;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement