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: 4565 - Unique: 3795

Advertise Here!

Quick Tutorial Search

VDC - Visual Design Core on Facebook

Our Popular Tutorials

Signature Backgrounds

Abstract Airbrushing

Abstract Wave Technique

Rusty Metal Plate

Cinema 4d Materials Tutorial

Abstract Renders in Cinema 4d

Dark Art Guide

Trendy Grunge Background