I need help with a basic HTML code snippet written in JavaScript.
<html>
<body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/aes-js/3.1.1/index.js"></script>
<script>
function toNumbers(d) {
var e = [];
d.replace(/(..)/g, function(d) {
e.push(parseInt(d, 16))
});
return e
}
function toHex() {
for (var d = [], d = 1 == arguments.length && arguments[0].constructor == Array ? arguments[0] : arguments, e = "", f = 0; f <
d.length; f++) e += (16 > d[f] ? "0" : "") + d[f].toString(16);
return e.toLowerCase()
}
var a = toNumbers("f655ba9d09a112d4968c63579db590b4"),
b = toNumbers("98344c2eee86c3994890592585b49f80"),
c = toNumbers("04c05cdcc65887d199b5ed0029d66d18");
document.cookie = "__test=" + toHex(slowAES.decrypt(c, 2, a, b)) + "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";
location.href = "http://ttw2.epizy.com/?i=1";
</script>
<noscript>This website needs Javascript enabled in your browser for full functionality.</noscript>
</body>
</html>
Whenever I try running this code, the webpage appears blank. However, upon checking the Chrome Console, I noticed that there's an error being returned:
Uncaught ReferenceError: slowAES is not defined
I'm unsure how to resolve this issue.