unique hash format

Post Reply
gzip
Posts: 9
Joined: Tue Jun 14, 2005 2:45 pm

unique hash format

Post by gzip »

I am querying the db using a -unique id that is being passed through the query string (see previous thread titled "IN operator"). I'm validating the data using a regular expression in PHP before I pass it along. My case insensitive regex is currently "^[a-z0-9]{15,16}$". Does 15-16 alphanumeric characters cover all possibilities of a unique id hash?
User avatar
John
Site Admin
Posts: 2603
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

unique hash format

Post by John »

9-16 hex (0-9a-f) characters will cover it.
John Turnbull
Thunderstone Software
gzip
Posts: 9
Joined: Tue Jun 14, 2005 2:45 pm

unique hash format

Post by gzip »

Looks good. Thanks for the quick response!
Post Reply