Tags: password,php

Sort by: Date / Title /

  1. 1 year ago by jacinmontava
    1. function randomPass($longitud)
    2. {
    3.     $pattern = "1234567890abcdefghijklmnopqrstuvwxyz";
    4.  
    5.     for($i=0;$i<$longitud;$i++)
    6.     {
    7.          $key .= $pattern{rand(0,35)};
    8.     }
    9.  
    10.     return $key;
    11. }
  2. 1 year ago by yorick
    PHP 4 >= 4.3.0, PHP 5
    1. $motdepasse = substr(str_shuffle('abcdefghijklmnopqrstuvwxyz0123456789'), 0, 8);

First / Previous / Next / Last / Page 1 of 1 (2 posteets)