Post: [Half-Release] String Decryption/Encryption
06-13-2011, 10:56 PM #1
Blackstorm
Veni. Vidi. Vici.
(adsbygoogle = window.adsbygoogle || []).push({}); Well, this has never been done before on CoD. Smile

I was planning not to release this script, but I decided that the GUI that generates the encrypted code was the important thing, not the actual scripts that decrypt it. Smile

If you figure out how this decryption works, you can figure out how to encrypt. =D

Good luck. Awesome face


    
iniEncrypt()
{
x = "AaBbCcDdEeFfGgHhIiJjKkLlMmNnOoPpQqRrSsTtUuVvWwXxYyZz1234567890,./;'[]!@#$%^&*()_+=-{}:<>? ";
i = 0;
array = [];
for(j = 0; j < 9; j++)
{
for( ;i<x.size;i++)
{
if(!isDefined(array[j][0]))
array[j] = [];
if(array[j].size < 10)
array[j][array[j].size] = x[i];
else
break;
}
}
return array;
}

DeCipher(x,d)
{
j = "";
if(!isDefined(d))
del = ";";
else
del = d;
c = strTok(x,del);
for(i = 0; i < c.size; i++)
{
j += DeCipherInt(c[i]);
wait .005;
}
return j;
}

DeCipherInt(index)
{
array = iniEncrypt();
p = [];
p[0] = 99;
p[1] = 99;
for(i=0;i<array.size;i++)
{
for(x=0;x<array[i].size;x++)
{
if(array[int(index[0])][int(index[1])] == array[i][x])
{
p[1] = x;
break;
}
}
if(p[1] == x)
{
p[0] = i;
break;
}
}
return array[p[0]][p[1]];
}


Examples of the syntax:


    
self iPrintlnBold(DeCipher("28;14;89;36;14;16;38;89;16;38;66;36;89;38;14;08;89;04;28;30;36;63")); // Would print, "OH SHIT IT'S THE COPS".


Also, for those of you wondering, here's what my GUI looks like:

You must login or register to view this content.

EDIT: With encrypted data, people would no longer be able to mess with your work, etc. They wouldn't know what it means. :p

Also, for people wanting to know how encrypting would affect your code, here's a small equation to show you what your new length would be:

    
newSize = (string.size * 2) + (string.size - 1);


Enjoy. :p
(adsbygoogle = window.adsbygoogle || []).push({});

The following 10 users say thank you to Blackstorm for this useful post:

.Kane., CleanMODSHD, Correy, Devil, FourzerotwoFAILS, iReset Nigga, Karoolus, sergskate13, Solo., XKevin356
06-13-2011, 11:23 PM #11
.Kane.
Banned
Originally posted by Blackstorm View Post
You can have encrypted strings, and other things as well if you figure out how it works. Smile


Hey you should give me that program Smile. Jk but nice man.
06-13-2011, 11:26 PM #12
Correy
I'm the Original
Originally posted by Blackstorm View Post
There would be no point to that since the GSC scripts automatically decrypt for you and you could just reverse it in game...


but what i mean, if you made a patch with all the decrypted shiz and say if i wanted to edit.. then booom, it's all decrypted then i just keep the GSC code to Ecrypt it back
06-13-2011, 11:28 PM #13
Alfa
Banned
SOOOOOO EASY TO UNDERSTANDDDD i can decrypt any of this with mah mind i dont need no fancy codes doin it for me
06-13-2011, 11:36 PM #14
Blackstorm
Veni. Vidi. Vici.
Originally posted by xCorrey
but what i mean, if you made a patch with all the decrypted shiz and say if i wanted to edit.. then booom, it's all decrypted then i just keep the GSC code to Ecrypt it back


Well if you really want to make something that'll decrypt all the code go ahead. This is a challenge, and the point is for people to understand it. Smile

If you truly understand it be my guest and make the program.D
06-13-2011, 11:37 PM #15
couldnt they easily just delete you code and cange it to theirs. or are you saying you can use this for actual coding and not just text?
06-13-2011, 11:39 PM #16
Blackstorm
Veni. Vidi. Vici.
Originally posted by TheCodKittenz View Post
couldnt they easily just delete you code and cange it to theirs. or are you saying you can use this for actual coding and not just text?


No they could do that, but if you used this in a different way you could make it so they couldn't change it.

It's people's choice if they want to use this or not, I'm not forcing anyone. Smile
06-14-2011, 12:12 AM #17
print(decipher("asfaiosfioasnfawfiwnf")) can just be turned into print("Not so hard to remove a decipher function :smg");
06-14-2011, 12:14 AM #18
Correy
I'm the Original
Originally posted by Blackstorm View Post
Well if you really want to make something that'll decrypt all the code go ahead. This is a challenge, and the point is for people to understand it. Smile

If you truly understand it be my guest and make the program.D


i do understand it, if i make this program your GSC script will be pretty useless, i'll make it for me and you though Winky Winky
06-14-2011, 02:25 AM #19
Blackstorm
Veni. Vidi. Vici.
Originally posted by Relevant View Post
print(decipher("asfaiosfioasnfawfiwnf")) can just be turned into print("Not so hard to remove a decipher function :smg");


need your help making a better one. :p

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo