Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

genrate random password php

$pass = random_password();
function random_password( $length = 8 ) {
    $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_-=+;:,.?";
    $password = substr( str_shuffle( $chars ), 0, $length );
    return $password;
}
 
PREVIOUS NEXT
Tagged: #genrate #random #password #php
ADD COMMENT
Topic
Name
2+8 =