Password Login Demo

by Yusuke13
[Share] [Zip]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Yusuke13.PasswordLoginDemo##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Yusuke13.PasswordLoginDemo##version=0

637 downloads
Version 0.1
Date added: Jun 26 2011
Last updated: Jul 16 2011
3 fans
Log into your character with any key using a password and a character name. [More]
Give it a shot.

The Save() and Load() procs are just standins. If you need help with a save and load proc, I suggest you check out the wide range of libraries dedicated to only that.

Advertisement

Comments

Lavitiz: (Aug 26 2013, 3:03 pm)
Unknown Person wrote:
When creating user/password authentication, you should not actually be storing the password, but instead should be storing a hash of it (ideally salted). This way, if the savefiles are compromised, then people won't be able to extract passwords.

I second this. I was just about to mention it. I've seen it happen so many times where passwords are stored as raw text and someone gets ahold of them.

md5() would be easy to implement, however I'd recommend something like SHA256.

If you're planning on updating this, I know a good library you could use for SHA256. You'll be required to include a DLL though.
Yusuke13: (Jul 10 2012, 5:57 pm)
Linkin5622 wrote:
Is there a way i could use this to accept my website members id and then load up only there saved games and could the save proc be edited to save files to my website storage instead on the computers.


The demo was meant to be just that, a demonstration. If you want to expand it, it's basically on you.
Linkin5622: (Jul 5 2012, 7:07 am)
Is there a way i could use this to accept my website members id and then load up only there saved games and could the save proc be edited to save files to my website storage instead on the computers.
Tafe: (Jun 28 2012, 4:00 am)
this is quickly made, bad looking and not really efficient for the users. Make sure to update it.
Yusuke13: (Feb 22 2012, 4:24 am)
I've been working, slowly, on an update for this demo. Currently, it isn't done very nicely and only supports old school popups. I'm working on an instance using a title screen you could see in an actual game using inputs and such.