Author |
Message |
emileej Newbie
Age:40 Gender: Joined: Aug 20 2004 Posts: 23 Location: Copenhagen - Denmark Offline
|
|
Back to top |
|
 |
emileej Newbie
Age:40 Gender: Joined: Aug 20 2004 Posts: 23 Location: Copenhagen - Denmark Offline
|
Posted: Fri Aug 20, 2004 7:21 pm Post subject: argh! |
 |
|
|
|
Ok I'm this close to toss that code ouy the window... I'm really stuck here! Please help - whatever you have of hints, ideas or questions will be helpfull. |
|
Back to top |
|
 |
myke Seasoned Helper
Gender: Joined: Sep 11 2003 Posts: 142 Offline
|
Posted: Fri Aug 20, 2004 7:58 pm Post subject: |
 |
|
|
|
you haven't described your problem so people really can't help you too much...is it a problem compiling? a problem with the encryption not encrypting or decrypting? |
|
Back to top |
|
 |
emileej Newbie
Age:40 Gender: Joined: Aug 20 2004 Posts: 23 Location: Copenhagen - Denmark Offline
|
Posted: Fri Aug 20, 2004 8:55 pm Post subject: |
 |
|
|
|
myke wrote: | you haven't described your problem so people really can't help you too much...is it a problem compiling? a problem with the encryption not encrypting or decrypting? | It compiles fine. I know that it is not decrypting properly since for instance my incomming reliable packets have insanely large IDs. I suspect it also doesnt encrypt ptoperly since I, when I send a reliable packet, get a reliable reply with a wrong id and no response on the content of the reliable packet. |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Fri Aug 20, 2004 9:21 pm Post subject: |
 |
|
|
|
Why not just gank them stright from logic bot? I believe he uses Snrrrubs work there for the packet wrappers encryptions, checksums, and settings structs. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Fri Aug 20, 2004 9:54 pm Post subject: |
 |
|
|
|
One of the requirements for coding is being able to debug. If you compile and run stuff and it doesn't work, you can't simply just throw it out to the public and say "it's broken, fix it". Take it step by step, narrow down where the problem is. For example, capture an encryption key and a packet from some other source, then see if your code results in the same encrypted packet, etc. _________________ 4,691 irradiated haggis! |
|
Back to top |
|
 |
emileej Newbie
Age:40 Gender: Joined: Aug 20 2004 Posts: 23 Location: Copenhagen - Denmark Offline
|
Posted: Sat Aug 21, 2004 3:15 am Post subject: |
 |
|
|
|
splody << I am - I asked Snrrrub for permission, got it and integrated his routines.
Mr. Ekted << I guess I deserved that one, but the point of me posting the source here in stead is that since it is coded by Snrrrub originaly then I though that this community was very familiar with it and could easier see any major screwups than I.
But as Ekted logicly suggests - are there anyone out there who could provide me with a log displaying client encryption key, server encryption key and all packets in a session encrypted aswell as decrypted? |
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Sat Aug 21, 2004 4:21 am Post subject: |
 |
|
|
|
There is only 1 key, set by the client. The server just compliments it, and sends it back. |
|
Back to top |
|
 |
emileej Newbie
Age:40 Gender: Joined: Aug 20 2004 Posts: 23 Location: Copenhagen - Denmark Offline
|
Posted: Sat Aug 21, 2004 4:52 am Post subject: |
 |
|
|
|
kk. I stand corrected. _________________ some ship
AngryAnt
http://angryant.com |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Aug 21, 2004 10:06 am Post subject: |
 |
|
|
|
Seeing as you've just ripped this from Snrrrubspace, I'm guessing you don't really know how it works. I'd suggest analyzing the code according to the known encryption, and then try to think your way through to where it's going wrong.
Also, you didn't give us the class CSSConnection declaration. That would be nice, too. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
emileej Newbie
Age:40 Gender: Joined: Aug 20 2004 Posts: 23 Location: Copenhagen - Denmark Offline
|
|
Back to top |
|
 |
Mr Ekted Movie Geek

Gender: Joined: Feb 09 2004 Posts: 1379 Offline
|
Posted: Sat Aug 21, 2004 2:56 pm Post subject: |
 |
|
|
|
We can't help without a larger context. You are probably using the functions incorrectly. We need to see all your code. Obviously Snrrrub's code works. |
|
Back to top |
|
 |
|