Password Generator In PHP. We can generate dynamic password with numeric, alphanumer etc using php. I created dynamic_password function. It will generate and return the dynamic password. You should have to send password type, length like sha1, md5 for password type and numeric value for password length. <?php function dynamic_password($type=”,$length=10){ // Dynamic password function […]
Tag Archives: Php Password
<?php if (!preg_match(‘~^[a-z0-9]*[0-9][a-z0-9]*$~i’,$password)) { // $subject is alphanumeric and contains at least 1 number $passworderror=”Please enter password with digits”; } ?>