I receive a get request from server, but is encrypted with a simple algorithm in Python, so I have this Method in ActionScript for decrypt this :
public static function Decrypt (encrypted : String) : String
{
var resultArray : ByteArray = new ByteArray();
for (var i:int = 0; i < encrypted.length; i++){
resultArray.writeByte(encrypted.charCodeAt(i) ^ 0x34);
}
var resultString : String = resultArray.toString();
return resultString;
}
Now, I need to implement this function in Javascript, but there is no ByteArray class in JS, any idea of how i can do this? Code and librarys are welcome.