kirchaj
Posts: 215
|
Posted: 05/07/2007, 12:49 PM |
|
Anyone have a copy of Feha's random password generator function? I have been hoping his site would come back online but no luck so far.
I am hoping someone might have it somewhere. Thanks
TK
|
|
|
mamboBROWN
Posts: 1713
|
Posted: 05/07/2007, 10:11 PM |
|
kirchaj
Try sending him a private PM. Maybe he will respond to you.
|
|
|
DonB
|
Posted: 05/08/2007, 8:13 AM |
|
Can't help with that, but I used this with excellent results. I wanted
'pronounceable' passwords and this worked perfectly:
https://dev.mosuki.com/passogva/src/passogva.php
You might argue that it's a lot of code for a 'simple' thing, but it's not
something that's speed critical and it just plain works well, so who cares?
--
DonB
http://www.gotodon.com/ccbth
"kirchaj" <kirchaj@forum.codecharge> wrote in message
news:25463f82b653285@news.codecharge.com...
> Anyone have a copy of Feha's random password generator function? I have
been
> hoping his site would come back online but no luck so far.
>
> I am hoping someone might have it somewhere. Thanks
>
>
> TK
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
wkempees
Posts: 1679
|
Posted: 05/08/2007, 1:10 PM |
|
Don,
I wonder, where do you find these jewels.
respect.
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
|
|
DonB
|
Posted: 05/09/2007, 8:39 AM |
|
Walter, I spend w-a-y too much time on the computer.
--
DonB
http://www.gotodon.com/ccbth
"wkempees" <wkempees@forum.codecharge> wrote in message
news:254640d91ba4ef4@news.codecharge.com...
> Don,
> I wonder, where do you find these jewels.
> respect.
>
> Walter
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>
|
|
|
2467
Posts: 47
|
Posted: 05/11/2007, 8:55 AM |
|
Here you have body
**************************
ALL KREDITS TO FEHA
**************************
Random Password Generator
This function can be used to generate different random strings. It can be used for password generation and other unique ID strings. Random Password Generator:
<?
function VISION_TO_RANDOM
(
$length=7, //string length
$uselower=1, //use lowercase letters
$useupper=1, // use uppercase letters
$usespecial=1, //use special characters
$usenumbers=1, //use numbers
$prefix=''
)
{
//=============================================
// Copyright by www.vision.to
// Author: Femi Hasani
//=============================================
$key = $prefix;
// Seed random number generator
srand((double)microtime() * rand(1000000, 9999999));
$charset = "";
if ($uselower == 1) $charset .= "abcdefghijkmnopqrstuvwxyz";
if ($useupper == 1) $charset .= "ABCDEFGHIJKLMNPQRSTUVWXYZ";
if ($usenumbers == 1) $charset .= "0123456789";
if ($usespecial == 1) $charset .= "~#$%^*()_+-={}|][";
while ($length > 0) {
$key .= $charset[rand(0, strlen($charset)-1)];
$length--;
}
return $key;
}
?>
REGARDS TO ALL
|
|
|
kirchaj
Posts: 215
|
Posted: 05/11/2007, 9:01 AM |
|
Thanks 2467,
That is exactly what I was looking for. Thanks to all who responded as well. It is great to have a support mechanism such as this.
TK
|
|
|
|