Re: [PHP-DB] password generator

2003-12-11 Thread Nikos Gatsis
Thanx you all guys, great tools indeed!

- Original Message - 
From: "Roger Spears" <[EMAIL PROTECTED]>
To: "php database" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 6:33 PM
Subject: Re: [PHP-DB] password generator


> Here's one I've used recently with success
> 
> http://www.devhood.com/tools/tool_details.aspx?tool_id=784
> 
> Thanks,
> Roger
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] password generator

2003-12-10 Thread Roger Spears
Here's one I've used recently with success

http://www.devhood.com/tools/tool_details.aspx?tool_id=784

Thanks,
Roger
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP-DB] password generator

2003-12-10 Thread Peter Lovatt
Hi

HTH

Peter


---
Excellence in internet and open source software
---
Sunmaia
Birmingham
UK
www.sunmaia.net
tel. 0121-242-1473
International +44-121-242-1473
---




function SM_pass_gen()
{

$consts = 'bcdgklmnprst';
$vowels = 'aeiou';
$symbols = '!%^_£123456789';
for ($x=0; $x < 6; $x++)
{
mt_srand ((double) microtime() * 100);
$const[$x] = substr($consts,mt_rand(0,strlen($consts)-1),1);
$vow[$x] = substr($vowels,mt_rand(0,strlen($vowels)-1),1);
$symb[$x] = substr($symbols,mt_rand(0,strlen($symbols)-1),1);
}
return $const[0] . $vow[0] .$const[2] . $const[1] . $vow[1] . $const[3]
. $vow[3] . $const[4] . $symb[2] . $symb[3];

}//end function





-Original Message-
From: Nikos Gatsis [mailto:[EMAIL PROTECTED]
Sent: 10 December 2003 13:42
To: PHP-mailist
Subject: [PHP-DB] password generator





Hello list

Is there any PHP script that generate password with digits from [a-zA-Z0-9]
to suggest me?
Thanx

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Password generator

2003-06-17 Thread Ramil G. Sagum
> a simple way would be to :


$pass = $allowable_characters[mt_rand(0,$ps_len-5)]
for($i = 0; $i < ($length -2); $i++) {
  $pass .= $allowable_characters[mt_rand(0,$ps_len-1)];
 }
$pass .= $allowable_characters[mt_rand(0,$ps_len-5)]



// This variable contains the list of allowable characters
// for the password.  Note that the number 0 and the letter
// 'O' have been removed to avoid confusion between the two.
// The same is true of 'I' and 1

> btw, you didn't implement this.

hope this helps


ramil


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php