hmmm...
Here 's a good XOR of mine...
Code:DWORD CreateKey(char *password) { const char *pstr; DWORD key; pstr = password; for (key = 0; (*pstr); ++pstr) { key *= 16777619; key ^= *pstr; } return key; } DWORD key = CreateKey("my secret password string!"); char val[301]; char *pv = val; srand(key); //..or any other set of pseudo rand fuctions while(*pv) { *pv ^= rand() % 255; /*replace with your own randomizer if you wish*/ pv++; }