Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (NnamueN, 1 invisible), 1,489 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: Secure Login [Re: WretchedSid] #441884
06/05/14 12:06
06/05/14 12:06
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
If you hash your password and then apply a salt, how should someone crack it with sniffing or whatever? O.O

Re: Secure Login [Re: Ch40zzC0d3r] #441886
06/05/14 12:14
06/05/14 12:14
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
You don't need to crack it, it essentially became your password. You just need to send it to the server.

By the way, any operation performed on the client can be traced. And let me stress that again, a salt is not a super secret thing no one is allowed to know. It's not there to make a single hash harder to crack, it's there to make it harder to crack all other hashes.

Edit: Also, you apply to the salt to the password and then hash it. Hash once, don't use double hashes or anything weird. That's just decremental to security.

Last edited by JustSid; 06/05/14 14:08.

Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Secure Login [Re: WretchedSid] #441891
06/05/14 14:14
06/05/14 14:14
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Thank you JustSid and Quadraxas!
Very informative and valuable!
I used my day to do some research on adaptive hash functions respectively bcrypt.
I was really afraid of implementing it, because i look so complicated.
But fortunately bcrypt is already implemented in PHP 5.5!
So i had no problems using it.

Tomorrow iīll do some research on secure server connection.
Iīll ask here again if i donīt understand something.

Thank you very much again!


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Secure Login [Re: alibaba] #441895
06/05/14 14:58
06/05/14 14:58
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
Haha fuck ur right O:
YOu can simply send it now to the server ..
I didnt think at this :DD
I should change my login now. :|

Last edited by Ch40zzC0d3r; 06/05/14 14:59.
Re: Secure Login [Re: Ch40zzC0d3r] #441899
06/05/14 17:06
06/05/14 17:06
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: Ch40zzC0d3r
I didnt think of this :DD

And that's the problem with everything cryptography: It's hard to think outside of the box and only making it secure against attacks oneself can think of is not going to actually make it secure.

That's why security through obscurity doesn't work and the advice is always to use a peer reviewed, battle tested public implementation and algorithm. If enough eyes look on it, chances are high it won't blow up immediately. Or put differently: Let other looks at your implementation and let them try to break it.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Secure Login [Re: WretchedSid] #442040
06/09/14 16:17
06/09/14 16:17
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Hey itīs me again. Iīve got a question.
Do you think that it would make sense to implement captcha?
I donīt think it will since my game is no message board and i canīt imagine what a bot would do after registration.


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Secure Login [Re: alibaba] #442180
06/14/14 10:17
06/14/14 10:17
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
What would you like to achieve with a captcha? Keeping bots from signing up? If so, what would the problem of that be?
Keep in mind that the bots have to be taught your custom protocol, so someone needs to have an incentive to write such a bot.

If you want to protect yourself against flooding, you should introduce rate limiting into your API endpoints, and define sensible limits (eg. a peer may only request the server list 5 times per minute). That's not a (D)DoS protection, but it can help you avoid heavy computations on the database.

Rate limiting you can do on something like redis, or some other in-memory store. Doesn't need to persistent, if the data is lost all rates are reset, but who cares. The advantage is that you don't need to do the full roundtrip to the full-blown database backend which has to drop down to the disk to ensure integrity.

Last but not least, here is a presentation about Cryptography called Everything you need to know about cryptography in 1 hour. Keep in mind thought that cryptography ins't the same as security.

Edit: Here is the video to the slides: http://blip.tv/fosslc/everything-you-need-to-know-about-cryptography-in-1-hour-3646795

Last edited by JustSid; 06/14/14 10:21.

Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Secure Login [Re: WretchedSid] #442406
06/20/14 22:07
06/20/14 22:07
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
@JustSid
Thanks again for your answer!


Iīve now implemented everything you told me.
Now my Login script should be safe enought for a multiplayer game, isnīt it?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: Secure Login [Re: alibaba] #442595
06/26/14 08:15
06/26/14 08:15
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
Originally Posted By: alibaba
Iīve now implemented everything you told me.
Now my Login script should be safe enought for a multiplayer game, isnīt it?

Impossible to tell without reviewing the code.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com
Re: Secure Login [Re: WretchedSid] #442603
06/26/14 13:15
06/26/14 13:15
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline OP
Expert
alibaba  Offline OP
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Originally Posted By: JustSid
Originally Posted By: alibaba
Iīve now implemented everything you told me.
Now my Login script should be safe enought for a multiplayer game, isnīt it?

Impossible to tell without reviewing the code.

Would you do it if i share the code with you?


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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