LonelyRoad Posted April 29, 2014 Posted April 29, 2014 Hey all, Are MTA Serials reliably unique? I've been developing a login/register system and I was thinking about implementing a remember me option or an autologin based on the user's serial. I want to know how 'safe' this would be, or if it is better to generate my own hash and identify them based on that instead?
ixjf Posted April 29, 2014 Posted April 29, 2014 There is a very small risk of serial conflicts. According to Talidan, approximately 500 other players have the same serial - that is a 0.1% conflict rate. it's statistically possible to have conflicting serials i did some statistics on it, and estimated a 0.1% conflict rate so, given our playerbase of 500,000+ users, that means there are probably 500 other players in the world with your serial I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
Alexs Posted April 29, 2014 Posted April 29, 2014 Hey all,Are MTA Serials reliably unique? I've been developing a login/register system and I was thinking about implementing a remember me option or an autologin based on the user's serial. I want to know how 'safe' this would be, or if it is better to generate my own hash and identify them based on that instead? You can store data in private files using 'fileCreate'. Developer @ MYVAL
Mr_Moose Posted April 30, 2014 Posted April 30, 2014 Autologin should be optional since some players might join from public computers, to make a unique identification you could probably combine multiple parameters for example serial and ip, otherwise the best solution is probably to store the account data on the users local computer by saving an xml file client side, just remember to encrypt passwords and other secret data. MTA Community | GitHub | 99Stack Forum
ixjf Posted April 30, 2014 Posted April 30, 2014 just remember to encrypt passwords and other secret data. Why would you need to? It's the client's responsability to keep his files safe. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
Mr_Moose Posted April 30, 2014 Posted April 30, 2014 Don't be lazy, encryption isn't hard at all and some clients can't protect their files in a good way, what if they play on a computer with many other users too etc.. Anyway it's your own choice if you want to deal with angry users who lost their account due to bad security. MTA Community | GitHub | 99Stack Forum
ixjf Posted April 30, 2014 Posted April 30, 2014 It's not about being lazy, it's about who is responsible for what. If they tick a check box to remember details, they should know that anyone with access to the computer can at least log in to their account. That's how things have been done for a long time and I have rarely seen any issues with it so I don't see any real benefit from encrypting the password. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
Markeloff Posted May 1, 2014 Posted May 1, 2014 so, given our playerbase of 500,000+ users, that means there are probably 500 other players in the world with your serial Impossible. Some people want it to happen, some wish it would happen, others make it happen.
Gallardo9944 Posted May 1, 2014 Posted May 1, 2014 There are more than 500k serials possible though. But I don't use serials as a base for smth - there are situations when you are not using your own computer or got a new one. Code Debugger - Minimalistic MTA debug line replacement
ixjf Posted May 2, 2014 Posted May 2, 2014 so, given our playerbase of 500,000+ users, that means there are probably 500 other players in the world with your serial Impossible. Is it, though? Are you saying you know better than the MTA developers themselves how their own system works? Would be nice if you could justify your opinion. Also, don't forget this is probability, not precise data. I used to know how to code, but then I took an arrow in the knee. Project Redivivus - Remaking Old School MTA With New Code MTA 0.6 Nightly 1 released
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now