Hi, can anyone help me fix this? Been struggling for a while now. Any ideas?
Code:
var secretMessage:String="REDACTED";
var key:String="The way of the Actionscript warrior";
var messageText:TextField;
function createMessageTxtField():void{
messageText = new TextField();
messageText.width = 15;
messageText.multiline = false;
messageText.wordWrap = false;
}
function decodeMessage(source : String, key : String):void {
var result : Array = new Array();
var kl:int=key.length;
var fn:Function=String.fromCharCode;
var i:int=0;
var n : int = source.length;
for (;i < n; ++i) {;
result.push(fn(source.charCodeAt(i) ^ key.charCodeAt(i %kl)));
}
messageText.htmlText=result;
}
Last edited by 5TonsOfFlax; 03-31-2010 at 08:43 AM.
Reason: remove trojan payload.
I have attached a screenshot of the message. If you got a virus alert, then we need an explanation from the user. I haven't thought that somebody may post malicious text here.
- The right of the People to create Flash movies shall not be infringed. -
The message as decoded by the algorithm originally posted with the unescape fix starts with "<p><u> Flash MW", then has a bunch of non-printable characters that look suspicious to me.
Where'd you get the secret message, and the decoding algorithm?