Random Password Script

Random Password Script

Posted By: mitsurug1 on Mar 06, 2005

This script generates Random Passwords

This php script is to create random passwords.
PHP Code:

<?php



function randompasswd() {

     
$salt "abchefghjkmnpqrstuvwxyz0123456789";

     
srand((double)microtime()*1000000);

         
$i 0;

         while (
$i <= 77) {

                         
$num rand() % 33;

                         
$tmp substr($salt$num1);

                         
$pass $pass $tmp;

                         
$i++;

         }

         return 
$pass;

}



$random_password randompasswd();



echo (
"Random password: $random_password");



?>
  • Comment on this tutorial
  • View the Printable Version

Posted On: Mar 06, 2005

Hits: 3309 - Unique: 2628

Advertise Here!

Quick Tutorial Search

Our Popular Tutorials

Signature Backgrounds

Abstract Wave Technique

Abstract Airbrushing

Cinema 4d Materials Tutorial

Rusty Metal Plate

Dark Art Guide

Trendy Grunge Background

Video Sigs