Valhalla Legends Forums Archive | C/C++ Programming | CDKey Decoding

AuthorMessageTime
root
i was wondering what is ment by CDKey Decoding
i wanna make war3 keygen that genrates keys valid for install purpose but export the results (ex: 1000 cdkey ) to
txt file

is what im looking for is CDKey Decoding or the Installer Cdkey algorithm

thnx in advance
March 10, 2006, 2:49 PM
shout
Why were you wandering?
March 10, 2006, 6:58 PM
root
[quote author=Shout link=topic=14482.msg148072#msg148072 date=1142017134]
Why were you wandering?
[/quote]


so you just came here and see my post without helping

i saw your post here
https://davnit.net/bnet/vL/index.php?topic=14086.msg145156#msg145156

seems you know how to or what is cdkey decoding
but you prefered not to tell me
thnx

anyone around here may help !!!???
March 10, 2006, 10:50 PM
l2k-Shadow
Spamming the forum with your topics is not going to get you help. And from your posts, I think it is safe to conclude that you have very little programming experience, hence making a CD-Key generator (especially for War3) which generates installer-valid keys is quite out of your capabilities.
March 10, 2006, 10:55 PM
root
sry for double posting
yes i have  very little programming experience
can you tell me at least what is cdkey decoding
(from posts i red here i think it's the code that validating the key for installation)

March 10, 2006, 11:41 PM
l2k-Shadow
[quote author=root link=topic=14482.msg148083#msg148083 date=1142034090]
sry for double posting
yes i have  very little programming experience
can you tell me at least what is cdkey decoding
(from posts i red here i think it's the code that validating the key for installation)

[/quote]

no and no
March 11, 2006, 12:16 AM
Yegg
[quote author=root link=topic=14482.msg148083#msg148083 date=1142034090]
sry for double posting
yes i have  very little programming experience
can you tell me at least what is cdkey decoding
(from posts i red here i think it's the code that validating the key for installation)
[/quote]

Cdkey decoding is a process which in simpler terms converts a cdkey to its decoded state. The key you receive in your game's cd-case you can call encoded. The decoding process is done by means of a certain algorithm. You can find an algorithm online, in fact on these forums. I've seen one (on these forums) written in C/++, Java, Python,  and LISP.
March 11, 2006, 3:44 AM
root
thnx very much for your reply Yegg
then after decodeing my cdkey
how i'm be sure that it's valid for installing  ???
March 11, 2006, 11:48 AM
Yegg
[quote author=root link=topic=14482.msg148126#msg148126 date=1142077713]
thnx very much for your reply Yegg
then after decodeing my cdkey
how i'm be sure that it's valid for installing  ???
[/quote]

I believe the following code I wrote should be fine.

[code]int CheckKey(char *key) {
int i, n, v = 3;
for (i = 0; i < 12; i++) {
n = num_val(key[i]);
n ^= (v * 2);
v += n;
}
if (key[12] == hex_val(v % 10)) return 1;
return 0;
}[/code]

Yes, it's not very clean C, so don't mention it. On success (or valid key), 1 is returned, otherwise 0 is returned.

If I'm wrong on this, someone correct me.

Note: You'll also need these two functions.

[code]char hex_val(int v) {
v &= 0xF;
if (v < 10) return v + 0x30;
else return v + 0x37;
}

int num_val(char c) {
c = toupper(c);
if (isdigit(c)) return c - 0x30;
else return c - 0x37;
}[/code]
March 11, 2006, 4:16 PM
root
thnx thnx thnx Yegg
i will try to type my code and see whats wrong with it
but for war 3 it's 24 char and your loop only 12

for (i = 0; i < 12; i++)


mmm

and another question
does  i, n, v for getting the product and public/private decoded values ??!!
March 11, 2006, 8:25 PM
Yegg
Oops, I didn't realize you mentioned Warcraft 3. My code will work only for Starcraft, Diablo, or Warcraft. Warcraft 3 is a different process.
March 12, 2006, 12:35 AM
root
mmmm
how can i get product ,private values for war3
can i make keygen without thes values
March 12, 2006, 7:51 AM
Kp
[quote author=root link=topic=14482.msg148186#msg148186 date=1142149883]
mmmm
how can i get product ,private values for war3
can i make keygen without thes values
[/quote]

You can get all the values for any key by decoding the form presented on the jewel case.  Creating a keygen only requires knowing what algorithm(s) the installer uses to validate the key, so that you can create a key which satisfies the constraints imposed by those algorithms.  That said, there's really no value to having the type of keygen you want, since it is only useful with stolen copies of the game and then can only be used for offline play.  Give up on this and go find something useful to contribute.
March 12, 2006, 5:00 PM
root
thnx Kp
March 13, 2006, 7:54 AM

Search