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[i] = lock[i] ^ lock[i-1];
key[0] = lock[0] ^ lock[len-1] ^ lock[len-2] ^ 5;
for (i = 0; i < len; i++)
key[i] = ((key[i]<<4) & 240) | ((key[i]>>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
-
joakim_tosteberg
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 07:38
- Location: Sweden, Linkoping
-
PseudonympH
- Forum Moderator
- Posts: 366
- Joined: 2004-03-06 07:46
Who is online
Users browsing this forum: Google [Bot] and 0 guests