Page 1 of 1
map magic algorithm
Posted: Mon Jul 25, 2005 2:13 pm
by mckenn88
i really need to know what the map magic algorithm is. dont flame about not knowing how to use it... i kno how to use it i just need it for a project.
Posted: Tue Jul 26, 2005 5:54 pm
by [users]Digital Marine
Whats your project??
Posted: Tue Jul 26, 2005 5:59 pm
by mckenn88
ill tell u if u tell me
Posted: Tue Jul 26, 2005 6:05 pm
by [users]Digital Marine
What if I told you if you told me first? Hehe
Posted: Tue Jul 26, 2005 6:50 pm
by Aequitas
Posted: Tue Jul 26, 2005 7:10 pm
by [users]Digital Marine
Wow, that is a lot of reading. I can say it really fast...
Posted: Tue Jul 26, 2005 9:47 pm
by Shalted
Xor every byte together after the header(first 2048 bytes)
so in c(sorry for my crappy code... I had surgery today)
Code: Select all
FILE *fp;
DWORD Signature=0;
DWORD *Buffer;
if((fp=fopen(Map_Path,rb)==NULL)
return -1; //A file error
fseek(fp,2048,NULL); //correct me if Im wrong on the function prototype here.
while(!feof(fp)){
fread(Buffer,1,sizeof(DWORD),fp);
Signature^=Buffer[0];
}
return Signature;
then write that to the offset of the signature.
Oh yeah DWORD=unsigned int
so...
Posted: Tue Jul 26, 2005 10:14 pm
by Aequitas
Map Magic != Encryptomatic Signature
I'll chalk this one up to the anesthetics.
Posted: Tue Jul 26, 2005 10:19 pm
by Shalted
Oh sorry I dunno what I was thinking. and thanks, its increadably hard to type right now.
Primary Or secondary?