SA-MP Forums Archive
characters in password - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: characters in password (/showthread.php?tid=640423)



characters in password - wallee - 02.09.2017

What characters should i allow in passwords or should i not restrict any at all? My concern is will my database be able to save german / spanish / russian letters or some special characters that i don't even know about? I don't want it getting bugged and people complaining they can't access their account ...


Re: characters in password - Luke_James - 02.09.2017

It doesn't matter, they're still ascii characters and your passwords should be hashed. You don't need to restrict anything.


Re: characters in password - Vince - 02.09.2017

If you use any decent hashing algorithm (i.e. not that udb_hash crap) then the output will be saved as a long hexadecimal string regardless of what the input is.


Re: characters in password - wallee - 02.09.2017

I use samp's sha function

Thanks all


Re: characters in password - Luke_James - 02.09.2017

SHA256 is fine but consider using salts for further security.