Unique key generation

后端 未结 13 2232
一个人的身影
一个人的身影 2020-12-03 05:53

I looking for a way, specifically in PHP that I will be guaranteed to always get a unique key.

I have done the following:

strtolower(substr(crypt(tim         


        
13条回答
  •  时光说笑
    2020-12-03 06:08

    I'm still not seeing why the passwords have to be unique? What's the downside if 2 of your users have the same password?

    This is assuming we're talking about passwords that are tied to userids, and not just unique identifiers. If that's what you're looking for, why not use GUIDs?

提交回复
热议问题