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-17-2011, 06:16 PM #29
Blackstorm
Veni. Vidi. Vici.
Lemme try this...

Bump
06-18-2011, 04:40 AM #30
pcfreak30
>> PCFreak30.com Happy<<
Originally posted by Karoolus View Post
i'm not gonna write it all by myself, i'm gonna need some help..
the idea i'm planning to use is based on RSA ^^
there'll be a decryption key in the patch, & an encryption key for the person who writes the codes Smile

still figuring out how to do it though Happy


Hmm I was thinking of the same general concept. Though you would need to create an encryption system that uses every feature of GSC, and uses the cipher key in the process..
06-21-2011, 09:10 AM #31
Blackstorm
Veni. Vidi. Vici.
Originally posted by pcfreak30 View Post
Hmm I was thinking of the same general concept. Though you would need to create an encryption system that uses every feature of GSC, and uses the cipher key in the process..


Suspenseful... o.O
06-21-2011, 09:31 AM #32
Karoolus
I'm the W@W Menu Guy !
Originally posted by pcfreak30 View Post
Hmm I was thinking of the same general concept. Though you would need to create an encryption system that uses every feature of GSC, and uses the cipher key in the process..


which is what i was thinking..
I've been experimenting with different encryption/decryption key, so coders can encrypt to publish, leecherz can only edit, but not encrypt, so it won't work :p

also i'm trying to think of a way to somehow check the patch before threading any 'modded' function, so when even a single character is edited, it would cause the whole function to collapse..


Originally posted by Blackstorm View Post
Suspenseful... o.O


if we work together, we could make something B-E-A-utiful :p
btw, read ^^^^^^^^ :p

The following user thanked Karoolus for this useful post:

little_legz
06-21-2011, 03:22 PM #33
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
which is what i was thinking..
I've been experimenting with different encryption/decryption key, so coders can encrypt to publish, leecherz can only edit, but not encrypt, so it won't work :p

also i'm trying to think of a way to somehow check the patch before threading any 'modded' function, so when even a single character is edited, it would cause the whole function to collapse..




if we work together, we could make something B-E-A-utiful :p
btw, read ^^^^^^^^ :p


haha, when you come up with the code you should send it to me to be put into my ffviewer as an option.
06-21-2011, 05:13 PM #34
Karoolus
I'm the W@W Menu Guy !
Originally posted by D34TH View Post
haha, when you come up with the code you should send it to me to be put into my ffviewer as an option.


will do Smile
06-21-2011, 06:42 PM #35
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Karoolus View Post
will do Smile


ill get on aim later and show you it if you want
06-21-2011, 07:57 PM #36
Blackstorm
Veni. Vidi. Vici.
Originally posted by Karoolus View Post
which is what i was thinking..
I've been experimenting with different encryption/decryption key, so coders can encrypt to publish, leecherz can only edit, but not encrypt, so it won't work :p

also i'm trying to think of a way to somehow check the patch before threading any 'modded' function, so when even a single character is edited, it would cause the whole function to collapse..




if we work together, we could make something B-E-A-utiful :p
btw, read ^^^^^^^^ :p


That's going to take a bit of thinking (making the code). =D
06-22-2011, 05:18 AM #37
INSAN3LY_D34TH
INSAN3LY GAMING
Originally posted by Blackstorm View Post
That's going to take a bit of thinking (making the code). =D


ill help with this

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo