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, 10:58 PM #2
.Kane.
Banned
Originally posted by Blackstorm View Post
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("^4" + DeCipher("15;17")); // Would print the word "hi". Happy



Enjoy. :p


So encrypted gscs or what?
06-13-2011, 10:59 PM #3
Blackstorm
Veni. Vidi. Vici.
Originally posted by .Kane. View Post
So encrypted gscs or what?


You can have encrypted strings, and other things as well if you figure out how it works. Smile
06-13-2011, 11:04 PM #4
Originally posted by .Kane. View Post
So encrypted gscs or what?


You can encrypt texts and codes. This makes it a whole lot harder for leechers to steal a patch/code.
06-13-2011, 11:09 PM #5
Blackstorm
Veni. Vidi. Vici.
Originally posted by FourzerotwoFAIL View Post
You can encrypt texts and codes. This makes it a whole lot harder for leechers to steal a patch/code.


Actually these functions only decrypt, but if you figure out how it works you can encrypt. :p
06-13-2011, 11:09 PM #6
Originally posted by Blackstorm View Post
Actually these functions only decrypt, but if you figure out how it works you can encrypt. :p


Well I meant that you encrypt it and the code decrypts it :P

The following user thanked FourzerotwoFAILS for this useful post:

Blackstorm
06-13-2011, 11:13 PM #7
Correy
I'm the Original
Originally posted by Blackstorm View Post
Actually these functions only decrypt, but if you figure out how it works you can encrypt. :p


easy to revers that, don't show the C++ script, easily converted to C# then reversed which is easy to make a source out of it..
which is easily done, just saying it so you only know the method so over fags can't decrypt it, unless you want me to make a tool which does that ?
06-13-2011, 11:17 PM #8
Blackstorm
Veni. Vidi. Vici.
Originally posted by xCorrey
easy to revers that, don't show the C++ script, easily converted to C# then reversed which is easy to make a source out of it..
which is easily done, just saying it so you only know the method so over fags can't decrypt it, unless you want me to make a tool which does that ?


What? Eek

That script is GSC, not C++.
06-13-2011, 11:19 PM #9
Correy
I'm the Original
Originally posted by Blackstorm View Post
What? Eek

That script is GSC, not C++.


yeah, thats what i ment.. it's easily converted to C#
in the GSC code you given you've given the encryption method, i could make a source / program which can get a Encrypted text from you program and reverse the encrytion to get a normal text, e.g.

you're thing for hi
input : 15:17
outpyt : hi

if you know what i mean Winky Winky
06-13-2011, 11:22 PM #10
Blackstorm
Veni. Vidi. Vici.
Originally posted by xCorrey
yeah, thats what i ment.. it's easily converted to C#
in the GSC code you given you've given the encryption method, i could make a source / program which can get a Encrypted text from you program and reverse the encrytion to get a normal text, e.g.

you're thing for hi
input : 15:17
outpyt : hi

if you know what i mean Winky Winky


There would be no point to that since the GSC scripts automatically decrypt for you and you could just reverse it in game...

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo