i cant make a working lock2 key function in c++ ( vs 2005).
the examples from wiki dont work
made this
char *creaza( char * lock)
{
char *key=new char[100];
int len=strlen(lock);
int i;
for (i = 1; i < len; i++)
key = lock ^ lock[i-1];
key[0] = lock[0] ^ lock[len-1] ^ lock[len-2] ^ 5;
for (i = 0; i < len; i++)
key = ((key<<4) & 240) | ((key>>4) & 15);
key[len]=0;
return key;
}
what is wrong? can somebody give me the exact steps in creating a key? that website doesn't work on my comp
lock 2 key please help !
Moderator: Moderators
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Forum Moderator
- Posts: 366
- Joined: 2004-03-06 02:46