PHP AES Decrpyt

I will be grateful for any hint in my question! I have a site that I want to spar through PHP. There is a JS script C and decrypts in AES format. I need to write the same and send Cooks by doing it through php without an emulator I know that there is an AES PHP library for this But I don't know where to start, variables are wounded everywhere In what direction should I think to come to the decision? _

aes.min.js -> https://pastebin.com/NM465A7C

<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("6675636b696e67636f6f6b6965adbeef"),
    b = toNumbers("6675636b696e67636f6f6b6965adbeef"),
    c = toNumbers("842fcd3ac61cca8be8265ea91028e3bf");
    
document.cookie = "cookiesname=" + toHex( slowAES.decrypt(c, 2, a, b) ) + "; expires=Thu, 31-Dec-37 23:55:55 GMT; path=/";

document.write(toHex(slowAES.decrypt(c, 2, a, b)));


</script>

Ответы (0 шт):