ExclamationHelpXOR Encryption

Posts 15 of 5 · Page 1 of 1
XOR Encryption
Hey Guys , I need help with encrypting strings in Redemptions Base v1.0 using Xor.h :

#include "Includes.h"

template <int XORSTART, int BUFLEN, int XREFKILLER>

class XorStr
{
private: //so you dont know ?
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;
}
-----------------------------------------
Please add me @ My MSN @ crashinfinity @ hotmail.com and TV Me !
If there's any program that auto encrypts the string automatically , please reply and link me !
This is the only thing holding me back from releasing a hack on here
Find a site that changes things... I haz one that Flengo sent me.
Quote Originally Posted by teehee15 View Post
Just added you a minute ago.. Maybe.
Add again . MSN always glitches
Posts 15 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Need help?