Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SF Coders] Password Generator
#8
PHP Code:
function passgen($len 5){
$alphau = Array ('A','B','C''D''F''G' ,'H''J''K''L''M''N','O''P''Q''R''S','T''U''V''W''X''Y','Z' );
$alphal = array('a','b','c','d','f','g','h','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z');
$misc = array('1','2','3','4','5','6','7','8','9','[',']','{','}','_','^','%','#','@','+','-');
$list array_merge($alphau,$alphal,$misc);
shuffle($list);
$password '';
for(
$i=0;$i<$len;$i++) {
$add array_rand($list);
$password .=  $list[$add];
}
return 
$password;

Thats my version.
Reply


Messages In This Thread
RE: [SF Coders] Password Generator - by BreShiE - 12-05-2011, 03:09 PM
RE: [SF Coders] Password Generator - by Infinity - 12-05-2011, 08:09 PM
RE: [SF Coders] Password Generator - by milopeach - 12-06-2011, 07:26 AM
RE: [SF Coders] Password Generator - by Benjamin Franklin - 12-06-2011, 04:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Dynamic Text Generator TalishHF 5 2,120 01-16-2012, 02:24 PM
Last Post: Gaijin
  How hard would it be to make an signature generator? Extornia 3 1,411 01-11-2012, 08:24 PM
Last Post: Gaijin
  Advanced Random Password Generator zone 2 1,222 11-06-2009, 09:16 PM
Last Post: zone
  mysql display password hey101 2 950 10-16-2009, 04:52 AM
Last Post: hey101

Forum Jump:


Users browsing this thread: 1 Guest(s)