Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Need help! Login and Password (Using DarkNet)

Author
Message
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 27th Jun 2010 21:59 Edited at: 28th Jun 2010 09:26
Ok, so I've been working on this most of the past week to no avail. I know exactly how I want it to work, and I've done everything that I know of to make it work, however it doesn't. I keep starting over and I'm getting no where quick. The majority of this problem is I don't understand how packet structure is, and how opening and closing files work I think.

Here's what I want to work:
1. Create an Account
1.1 Store account information on the server
1.2 Have an encrypted password
2. Log in to the Account
2.1 Using a user name and a password
2.2 Have the file accessible to read and write more account information
3. Load account specific data from previous account access


The ideas that I've had in mind:

Username and Password Login (Server Side):


However I have no clue how I would interpret the data, because I'm not exactly sure how it's sent. I know I have the length of the packet included because of the len command. So I should be able to set the mn Get String length parameter to zero I believe.

Is their any examples I could see of how to set up a system such as this?

EDIT: I figured part of the problem out!

I didn't know that DBP strings were null terminated (well, didn't know what null termination was to be honest). Either way, so after a lot of trouble shooting I figured out there was a setting for it!

Since I personally had a bit of an issue for this, I'll just go ahead and keep adding to this thread when I complete a step.

As for now, Step 2.1 is done.

Server Side:


Client Side:


If at first you dont succeed, LOWER YOUR STANDARDS.
sneaky smith12
18
Years of Service
User Offline
Joined: 30th Apr 2006
Location: Like id tell you, oh wait i just did
Posted: 28th Jun 2010 18:17 Edited at: 28th Jun 2010 18:19
Step 1.1 is done. If a moderator could change name of thread (just get rid of "need help!" that would be appreciated.

Change log:


Attached is:


Server Side:


Client Side:


If at first you dont succeed, LOWER YOUR STANDARDS.

Attachments

Login to view attachments
Snipermoh
14
Years of Service
User Offline
Joined: 15th Aug 2009
Location:
Posted: 16th Aug 2010 08:00
can u please tell me how u can put all this on ur game

Here's what I want to work:
1. Create an Account
1.1 Store account information on the server
1.2 Have an encrypted password
2. Log in to the Account
2.1 Using a user name and a password
2.2 Have the file accessible to read and write more account information
3. Load account specific data from previous account access
Hawkblood
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 16th Aug 2010 19:06
Do you still need help?

The fastest code is the code never written.
Omen
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: Maple Grove, MN US
Posted: 17th Aug 2010 06:12
One thing you might want to consider is to NOT send the password when the client does a login. This can be accomplished by using a series of keys that use the password itself as the encryption key. Generally, you should only need to ever send the password once when the client account is created. This is the technique I used for OMEN:



Snipermoh
14
Years of Service
User Offline
Joined: 15th Aug 2009
Location:
Posted: 17th Aug 2010 07:17 Edited at: 17th Aug 2010 07:18
yes i still need help how can i set it up on my game and if im using a severs from godaddy how can i get the info like password,username,email sent too me and how can i do this cause i dont under stand
GIDustin
15
Years of Service
User Offline
Joined: 30th May 2008
Location:
Posted: 20th Aug 2010 17:02
@snipermoh
Not sure you can do what you want to do using a godaddy server...

@Omen
I like your auth routine. Does that mean you store their passwords in plain text server side or do you have a method of encryption there too?

Omen
17
Years of Service
User Offline
Joined: 7th Nov 2006
Location: Maple Grove, MN US
Posted: 21st Aug 2010 03:51
@GIDustin,

OH YES, I use DarkFISH

http://forum.thegamecreators.com/?m=forum_view&t=109067&b=5

...both for encrypting and persisting data server side, and for encrypting data sent over the wire. It fast and reversible, so it works extremely well. Couldn't be happier with it.

Login to post a reply

Server time is: 2024-05-03 06:08:57
Your offset time is: 2024-05-03 06:08:57