L
L
Letton2018-06-25 16:26:39
Hashing
Letton, 2018-06-25 16:26:39

How to competently implement authorization in php, mySQL?

In search of useful information, I constantly came across the fact that the user's token is done through md5, for example md5(username.salt) . Why do they do it? After all, there is a collision that can always happen, especially on popular sites. How to implement it correctly. And what is the generally accepted way here. Thanks for the help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-06-25
@webinar

After all, there is a conflict

which? Do not confuse identifier and token. The first must be unique, the second must not.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question