Ver Mensaje Individual
  #4 (permalink)  
Antiguo 13/01/2009, 11:10
Avatar de pateketrueke
pateketrueke
Modernizr
 
Fecha de Ingreso: abril-2008
Ubicación: Mexihco-Tenochtitlan
Mensajes: 26.399
Antigüedad: 16 años, 11 meses
Puntos: 2534
Respuesta: desencriptar md5?

¿¿por que no usar las funciones existentes??

Código PHP:
$foo substr(md5(mt_rand() / .2), 06); // 6 caracteres
$foo substr(uniqid(''), 06); 
etc, etc....

o algo mas personalizado

Código PHP:
$max 6;
$foo null;

$chars 'abcdefghjkmnpqrstuvwxyz-_[]'
            
.  'ABCDEFGHJKLMNPQRSTUVWXYZ'
            
.  '23456789'// permitidos

for ($i 0$i $max; ++$i)
{
  
$foo .= substr($charsrand(0strlen($chars)), 1);
}

// pass = $foo 
__________________
Y U NO RTFM? щ(ºдºщ)

No atiendo por MP nada que no sea personal.