Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (degenerate_762, AndrewAMD), 877 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: How to: Login [Re: Quad] #389423
12/14/11 06:45
12/14/11 06:45
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Thanks! I will look into this laugh


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: How to: Login [Re: alibaba] #389455
12/14/11 16:05
12/14/11 16:05
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Can someone please enlighten me why a text file is supposed to be unsafer than a database? Its slower, okay, but less secure? Why?


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: How to: Login [Re: WretchedSid] #389464
12/14/11 17:46
12/14/11 17:46
Joined: Jun 2011
Posts: 133
N
nomis23uk Offline
Member
nomis23uk  Offline
Member
N

Joined: Jun 2011
Posts: 133
Originally Posted By: JustSid
Can someone please enlighten me why a text file is supposed to be unsafer than a database? Its slower, okay, but less secure? Why?


you can put a password on a database. with a text file its all there and accessable if somone knows the direct path to said text file(s).

also with a database you can control which user has access to which part of the database etc.


A8 Pro
Windows 7 64bit
QuadCore i7, 6 gb ram, ATI 5970
Re: How to: Login [Re: nomis23uk] #389500
12/15/11 06:14
12/15/11 06:14
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Through .htaccess you can lock a directory from veeing accessable through the internet.
But I guess that it's easier to hack the textfile than hacking the db server.

I would suggest to use php between gamestudio and db serber. Through http post you can talk with the php scripts. This way you can define an explicit interface how the db server can be accessed.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: How to: Login [Re: nomis23uk] #389501
12/15/11 06:15
12/15/11 06:15
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Through .htaccess you can lock a directory from veeing accessable through the internet.
But I guess that it's easier to hack the textfile than hacking the db server.

I would suggest to use php between gamestudio and db serber. Through http post you can talk with the php scripts. This way you can define an explicit interface how the db server can be accessed.


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: How to: Login [Re: Dark_samurai] #389502
12/15/11 06:20
12/15/11 06:20
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Yes, i´m doing it like this laugh Gstudio<->PHP<->Encryption<-> Database


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: How to: Login [Re: alibaba] #389511
12/15/11 10:29
12/15/11 10:29
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
Better would be: Gamestudio<>Encryption<>Php<>DB


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: How to: Login [Re: Dark_samurai] #389513
12/15/11 10:40
12/15/11 10:40
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
You´re right..


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: How to: Login [Re: alibaba] #389520
12/15/11 12:05
12/15/11 12:05
Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
Ä°stanbul, Turkey
With http requests and php you need a good authentication logic and encryption. Players can easily check your http requests and responses and may reroute some requests to other places(local http server) and return a response from there to make it look like they have been authenticated as a player that is non-existent or a different one. Using same methods they can also fake stats. That is also possible with packets used between gamestuio client and gs server but that's a lot harder.


3333333333
Re: How to: Login [Re: nomis23uk] #389574
12/15/11 18:22
12/15/11 18:22
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: nomis23uk
you can put a password on a database. with a text file its all there and accessable if somone knows the direct path to said text file(s).

Sounds like you can't handle a server. With the right settings there is no security risk whatsoever, beside maybe bugs in the server software, but they are usually well tested (especially Apache and Nginx).
Btw, its also possible to fail to secure a database so that everyone has access to it. For example by not validating any input.

Quote:
also with a database you can control which user has access to which part of the database etc.

Why would I want to have user access? Normally everything is routed through a webservice which has access to the database.

Anyway, about encryption, usually you want to use HTTPS instead of HTTP, and before trusting the HTTPS connection (hey, man in the middle attacks work there too), you should validate the certificate, the CA of the certificate and if the certificate was revoked (something most HTTPS implementations never do). You don't need to encrypt what you put into the database, however, don't even dare to put passwords in plain text into it. Always save a salted hash of the user passwords and try to make the salt as random as possible. You also should consider SHA256 as hashing algorithm because MD5 and SHA1 are considered more or less broken by now.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Page 2 of 2 1 2

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1