Results 1 to 7 of 7
  1. #1
    Jader Chew's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Dead

    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

  2. #2
    CFHackerExtreme's Avatar
    Join Date
    Jun 2012
    Gender
    male
    Location
    Germany
    Posts
    245
    Reputation
    10
    Thanks
    560
    My Mood
    Yeehaw
    You mean, how to make XorStrings?

  3. #3
    Ayyash's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    20
    Reputation
    34
    Thanks
    5
    Lmao, i posted XOR Encryption once in cf section and all are using it noobs ! cf section is full of leechers .......

    On topic ... https://www.tutogames.xpg.com.br/xorgen.html

  4. #4
    ARGB's Avatar
    Join Date
    Apr 2013
    Gender
    male
    Posts
    68
    Reputation
    10
    Thanks
    9
    My Mood
    Dead
    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 ... https://www.tutogames.xpg.com.br/xorgen.html
    leechers like you, who just repost codes and think they are pros? k ..

  5. #5
    Ayyash's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Posts
    20
    Reputation
    34
    Thanks
    5
    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

  6. #6
    Jader Chew's Avatar
    Join Date
    May 2013
    Gender
    male
    Posts
    2
    Reputation
    10
    Thanks
    0
    My Mood
    Dead
    Question sloved!! , Thank you .

  7. #7
    giniyat101's Avatar
    Join Date
    Sep 2011
    Gender
    male
    Location
    Not telling.
    Posts
    1,935
    Reputation
    130
    Thanks
    1,380
    My Mood
    Dead
    @Ayyash
    you should remove that link or you will get banned.


     



    [img]https://i43.photobucke*****m/albums/e367/DeteSting/Steam-update.gif[/img]

Similar Threads

  1. [Solved] Sobre Encrypt de strings
    By HahaSouFoda in forum Combat Arms BR Coding Help
    Replies: 11
    Last Post: 03-25-2012, 10:42 AM
  2. [Solved] Encrypt / Decrypt String do Menu
    By johwsouza in forum Combat Arms BR Coding Help
    Replies: 9
    Last Post: 02-26-2012, 07:52 PM
  3. [Tutorial] Encrypting/decrypting strings
    By sythe179 in forum Visual Basic Programming
    Replies: 5
    Last Post: 08-08-2011, 03:08 PM
  4. How i Fix the String error?
    By simonboy7 in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 1
    Last Post: 10-12-2010, 08:55 AM
  5. How do you encrypt?
    By Shaadow in forum Visual Basic Programming
    Replies: 2
    Last Post: 09-26-2010, 02:11 PM