Hi Guys,
I'm playing around with RC4 Encryption in JS, and calling it with the CallJS and Function (injectJS) Plugins.
I'm able to successfully use the 2 plugins to call the JS code to encrypt my text, but the encrypted text seems to be all jumbled up, and is not the same as on a 'proper' implementation, e.g.:
shop-js.sourceforge.net/crypto.htm
For example I'll enter in:
text = "new"
key = "aaa"
From the sourceforge page I get: "sTlr"
Whereas if I call the same code from my construct 2 project I get: "R?D"
I've used both CallJS from Joe7 and Function (InjectJS) from RexRainbow, which return the same result, so it's not an issue with the plugins. I'm not sure if perhaps there is something weird with the character sets that are returned, or some behaviour with C2 that I don't know about?
Any ideas guys?