HelpHow encrypt a string

Posts 17 of 7 · Page 1 of 1
How encrypt a string
Can anyone tell me how do I encrypt a string using XOR

How they generate the strings ?

Code:
#ifndef _XOR_H
#define _XOR_H
template <int XORSTART, int BUFLEN, int XREFKILLER>
class XorStr
{
private: 
 XorStr();
public: 
 char s[ BUFLEN ];
 XorStr( const char * xs );
 ~XorStr()
 {
  for ( int i = 0; i < BUFLEN; i++ ) s[ i ]=0; 
 }
};
template <int XORSTART, int BUFLEN, int XREFKILLER>
XorStr<XORSTART,BUFLEN,XREFKILLER>::XorStr( const char * xs )
{
 int xvalue = XORSTART;
 int i = 0;
 for ( ; i < ( BUFLEN - 1 ); i++ ) 
 {
  s[ i ] = xs[ i - XREFKILLER ] ^ xvalue;
  xvalue += 1;
  xvalue %= 256;
 }
 s[ BUFLEN - 1 ] = 0;
}
#endif
#define EncryptedCShell /*CShell.dll*/XorStr<0x77,11,0x0026791B>("\x34\x2B\x11\x1F\x17\x10\x53\x1A\x13\xEC"+0x0026791B).s
#define EncryptedClientFx /*ClientFX.fxd*/XorStr<0x94,13,0xA00514A7>("\xD7\xF9\xFF\xF2\xF6\xED\xDC\xC3\xB2\xFB\xE6\xFB"+0xA00514A7).s
#define EncD3d9 /*D3d9.dll*/XorStr<0x88,9,0x8F034C3B>("\xCC\xBA\xEE\xB2\xA2\xE9\xE2\xE3"+0x8F034C3B).s
#define EncryptedCrossfire /*crossfire.exe*/XorStr<0xAD,14,0x3B5E9B13>("\xCE\xDC\xC0\xC3\xC2\xD4\xDA\xC6\xD0\x98\xD2\xC0\xDC"+0x3B5E9B13).s
Quote Originally Posted by Ayyash View Post
Lmao, i posted XOR Encryption once in cf section and all are using it noobs ! cf section is full of leechers .......

On topic ... http://www.tutogames.xpg.com.br/xorgen.html
leechers like you, who just repost codes and think they are pros? k ..
Quote Originally Posted by ARGB View Post
leechers like you, who just repost codes and think they are pros? k ..
umad bitch? y u even browsing mpgh when ur man is perm banned for scamming /ashu
Question sloved!! , Thank you .
@Ayyash
you should remove that link or you will get banned.
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?