ID:2114987
Jul 12 2016, 8:46 am
|
|
I know there are alternatives to using raw text when making a Login like this in order to keep the players' login information secure so that if save files were taken no one would be able to find out someone's username or password. I was wondering if anyone on the lovely BYOND Community could lend me a helping hand. |
Why not compared the text in the input for the password with the unhashed pass on the server so even if it is a collision the password itself has to match? o:
|
You should NEVER store unhashed passwords ANYWHERE, that's like rule 1 of any authentication system. There should never be a way to go from hashed/encrypted password back to raw password, that's the whole reason hashes can't be outright reversed in most cases.
Same reason most services will have you reset your password, but won't tell you the password you had, because they generally have no idea what the actual password is (if the service ever sends you anything with your raw password, they're doing something wrong). |
You can lessen the problem by using salts and whatnot for your hashes but ultimately it's not bullet proof. If you wanted true security you'd probably want to do full out encryption on the values you didn't want being messed with, you can search the Developer Resources for various encryption libraries, or Google for a massive amount of encryption algorithms that can be ported into DM code.