开发者

Can the bin2hex value two different strings be the same?

开发者 https://www.devze.com 2022-12-10 13:04 出处:网络
I am using bin2hex to create unique id\'s for my users as an Identifier and I do开发者_如何学Pythonn\'t want to connect to MySQL for checking repetition .If the string is unique, the hex will be too,

I am using bin2hex to create unique id's for my users as an Identifier and I do开发者_如何学Pythonn't want to connect to MySQL for checking repetition .


If the string is unique, the hex will be too, because it has the same contents presented in different format. Note that the hex will generally be about twice as long as your input string, so there could be performance/storage issues if you have lots of longer strings.

0

精彩评论

暂无评论...
验证码 换一张
取 消