Lock/key creation trouble

Technical discussion about the NMDC and <a href="http://dcpp.net/ADC.html">ADC</A> protocol. The NMDC protocol is documented in the <a href="http://dcpp.net/wiki/">Wiki</a>, so feel free to refer to it.

Moderator: Moderators

Locked
Spyru
Posts: 4
Joined: 2004-10-24 05:43
Contact:

Lock/key creation trouble

Post by Spyru » 2004-10-24 05:48

I now this is posted lots of times, but I have been looking for the error for a week now. I have even manually created some characters from the key. I have made an html file that will explain what i have done here.

Explanation: The column 'nibble' is the same as ((key << 4) & 240) | ((key >> 4) & 15).

Thanks, Spyru

TheParanoidOne
Forum Moderator
Posts: 1420
Joined: 2003-04-22 14:37

Post by TheParanoidOne » 2004-10-24 05:52

I don't see an actual question there. Are you asking for help or just demostrating what you have done?
The world is coming to an end. Please log off.

DC++ Guide | Words

Spyru
Posts: 4
Joined: 2004-10-24 05:43
Contact:

Re: Lock/key creation trouble

Post by Spyru » 2004-10-24 06:19

but I have been looking for the error for a week now.
OK I didn't really state my question right. The key that is generated is wrong. That's actually my question ;)

grtz, Spyru

Todi
Forum Moderator
Posts: 699
Joined: 2003-03-04 12:16
Contact:

Post by Todi » 2004-10-24 06:48

That's not a question either. If you have problems, have a look in the DC++ wiki, there are plenty of examples there.

Spyru
Posts: 4
Joined: 2004-10-24 05:43
Contact:

Post by Spyru » 2004-10-24 06:53

I DID take a look there, but I can't find out what's wrong, so can you please help me or not?
I get a certain feeling I am calculating the first $Key character wrong (1st lock char, last lock char, 2nd last lock char and 5).

Spyru
Posts: 4
Joined: 2004-10-24 05:43
Contact:

Post by Spyru » 2004-10-24 07:19

Actually I did, it just thought of it, and how simple it was I shouldn't xor the character 5 but just the number 5 lol...

Thanks anyways.. :)

Locked