Random Password

Added: 26 October, 2007
Downloads: 314
Required: php
Ratting: Not rated yet!

This is a small php function to generate strings randomly. This can be used to generate random password



  • Copy and paste the rand_pass($length) function at the top of your php script.
  • Call the function and store it in variable where you need to generate passowrd.
  • Set the parameter $length to tell the maximum length of your password
Here is an example of calling the function ...< br />
$pass = rand_pass(6); // Generates random password of length 6 and stores in $pass;
echo $pass; // Example of using genrated password