Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

auto generate password in php

function rand_string( $length ) {
    $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
    return substr(str_shuffle($chars),0,$length);
}

echo rand_string(8);
 
PREVIOUS NEXT
Tagged: #auto #generate #password #php
ADD COMMENT
Topic
Name
5+9 =