Jump to content
Wisa

Fun stuff

Recommended Posts

Posted

    function decryptSRC(src) { 
src_unenc = "";
[COLOR=#ff0000] key = "s0m3th|ng2scr@mbl3";
l33t_apology = "I know. Our decryption is kinda stupid, huh."; [/COLOR]
if (src.length > 0) {
i = 0;
while (i < src.length) {
char1 = src.substr(i, 1);
char2 = src.substr(i + 1, 1);
if ((char1 >= "0") && (char1 <= "9")) {
digit1 = char1.charCodeAt(0) - "0".charCodeAt(0);
} else {
digit1 = (char1.charCodeAt(0) - "a".charCodeAt(0)) + 10;
}
if ((char2 >= "0") && (char2 <= "9")) {
digit2 = char2.charCodeAt(0) - "0".charCodeAt(0);
} else {
digit2 = (char2.charCodeAt(0) - "a".charCodeAt(0)) + 10;
}
encrypted_ascii = (digit1 * 16) + digit2;
ascii = encrypted_ascii ^ key.substr((i / 2) % key.length, 1).charCodeAt(0);
src_unenc = src_unenc + chr(ascii);
i = i + 2;
}
src = src_unenc;
}
return(src);
}

Intr-un swf de la facebook :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...