Io credo che usando una funzione tipo questa:
Dovresti andare più che bene. Ti genera una stringa univoca di 32 caratteri.Codice PHP:
// Genera un nuovo ID
function _makeID()
{
list( $usec , $sec ) = explode( ' ' , microtime() ) ;
mt_srand( ( float ) $sec + ( ( float ) $usec * 100000 ) ) ;
return md5( uniqid( mt_rand() . time() , true ) ) ;
} // End _makeSID
Credo ioltre che il campo varchar(32) vada più che bene. Ciao!