Re: [PHP] Password generator

2003-06-17 Thread Lars Torben Wilson
On Tue, 2003-06-17 at 02:45, Davy Obdam wrote:
 Hi people,
 
 I have to make a password generator, but i have a little problem.
 
 - It needs to generate password 8 characters long, and including 1 or 2 
 special characters(like #$%*@).
 - Those special characters can never appear as the first or last 
 character in the string... anywhere between is fine.
 
 I have a password generator script now that does the first thing... but 
 the special character can be in front or back of the string wich it 
 shouldnt.. i have been looking on the web for this but i havent found 
 the answer. Below is my scripts so far.. 
 
 Any help is appreciated, thanks for your time,
 
 Best regards,
 
 Davy Obdam

Please don't crosspost. Pick the suitable list (in this case, it would
have been php-general).

Anyway, just tell it not to use anything beyone the first 26 characters
of your allowable characters string. Below is one way to do it.


Good luck,

Torben


?php
error_reporting(E_ALL);
ini_set('display_errors', true);

// A function to generate random alphanumeric passwords in PHP
// It expects to be passed a desired password length, but it
// none is passed the default is set to 8 (you can change this)
function generate_password($length = 8) {
   // 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
   $allowable_characters =
'abcdefghefghijklmnopqrstuvwxyz0123456789%#*';
 
   // We see how many characters are in the allowable list
   $ps_len = strlen($allowable_characters);

   // Max index of the characters allowed to stand and end the output.
   $max_endpoint_ind = 25;

   // 0-based index of the last char of the output
   $last_char = $length - 1;

   // Seed the random number generator with the microtime stamp
   // (current UNIX timestamp, but in microseconds)
   mt_srand((double)microtime() * 100);

   // Declare the password as a blank string.
   $pass = ;

   // Loop the number of times specified by $length
   for($i = 0; $i  $length; $i++) {
   // Each iteration, pick a random character from the
   // allowable string and append it to the password.
   switch ($i) {
   case 0:
   case $last_char:
   $pass .= $allowable_characters{mt_rand(0,
$max_endpoint_ind)};
   break;
   default:
   $pass .= $allowable_characters{mt_rand(0, $ps_len)};
   }
   }

   // Retun the password we've selected
   return $pass;
}

for ($i = 0; $i  100; $i++) {
echo generate_password() . \n;
}

?


-- 
 Torben Wilson [EMAIL PROTECTED]+1.604.709.0506
 http://www.thebuttlesschaps.com  http://www.inflatableeye.com
 http://www.hybrid17.com  http://www.themainonmain.com
 - Boycott Starbucks!  http://www.haidabuckscafe.com -




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



Re: [PHP] Password generator

2003-06-17 Thread Davy Obdam
Thanks Lars and ofcourse all the other people who answerd.

It works great!!

Best regards,

Davy Obdam

Lars Torben Wilson wrote:

On Tue, 2003-06-17 at 02:45, Davy Obdam wrote:
 

Hi people,

I have to make a password generator, but i have a little problem.

- It needs to generate password 8 characters long, and including 1 or 2 
special characters(like #$%*@).
- Those special characters can never appear as the first or last 
character in the string... anywhere between is fine.

I have a password generator script now that does the first thing... but 
the special character can be in front or back of the string wich it 
shouldnt.. i have been looking on the web for this but i havent found 
the answer. Below is my scripts so far.. 

Any help is appreciated, thanks for your time,

Best regards,

Davy Obdam
   

Please don't crosspost. Pick the suitable list (in this case, it would
have been php-general).
Anyway, just tell it not to use anything beyone the first 26 characters
of your allowable characters string. Below is one way to do it.
Good luck,

Torben

?php
error_reporting(E_ALL);
ini_set('display_errors', true);
// A function to generate random alphanumeric passwords in PHP
// It expects to be passed a desired password length, but it
// none is passed the default is set to 8 (you can change this)
function generate_password($length = 8) {
  // 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
  $allowable_characters =
'abcdefghefghijklmnopqrstuvwxyz0123456789%#*';

  // We see how many characters are in the allowable list
  $ps_len = strlen($allowable_characters);

  // Max index of the characters allowed to stand and end the output.
  $max_endpoint_ind = 25;
  // 0-based index of the last char of the output
  $last_char = $length - 1;
  // Seed the random number generator with the microtime stamp
  // (current UNIX timestamp, but in microseconds)
  mt_srand((double)microtime() * 100);
  // Declare the password as a blank string.
  $pass = ;
  // Loop the number of times specified by $length
  for($i = 0; $i  $length; $i++) {
  // Each iteration, pick a random character from the
  // allowable string and append it to the password.
  switch ($i) {
  case 0:
  case $last_char:
  $pass .= $allowable_characters{mt_rand(0,
$max_endpoint_ind)};
  break;
  default:
  $pass .= $allowable_characters{mt_rand(0, $ps_len)};
  }
  }
  // Retun the password we've selected
  return $pass;
}
for ($i = 0; $i  100; $i++) {
   echo generate_password() . \n;
}
?

 

--
---
Davy Obdam 
Web application developer

Networking4all
email: [EMAIL PROTECTED]
email: [EMAIL PROTECTED]
internet: http://www.networking4all.com
---


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


[PHP] Password generator

2003-06-17 Thread Davy Obdam
Hi people,

I have to make a password generator, but i have a little problem.

- It needs to generate password 8 characters long, and including 1 or 2 
special characters(like #$%*@).
- Those special characters can never appear as the first or last 
character in the string... anywhere between is fine.

I have a password generator script now that does the first thing... but 
the special character can be in front or back of the string wich it 
shouldnt.. i have been looking on the web for this but i havent found 
the answer. Below is my scripts so far.. 

Any help is appreciated, thanks for your time,

Best regards,

Davy Obdam



?php
// A function to generate random alphanumeric passwords in PHP
// It expects to be passed a desired password length, but it
// none is passed the default is set to 8 (you can change this)
function generate_password($length = 8) {
   // 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
   $allowable_characters = abcdefghefghijklmnopqrstuvwxyz0123456789%#*;
  
   // We see how many characters are in the allowable list
   $ps_len = strlen($allowable_characters);

   // Seed the random number generator with the microtime stamp
   // (current UNIX timestamp, but in microseconds)
   mt_srand((double)microtime()*100);
   // Declare the password as a blank string.
   $pass = ;
   // Loop the number of times specified by $length
   for($i = 0; $i  $length; $i++) {
  
   // Each iteration, pick a random character from the
   // allowable string and append it to the password.
   $pass .= $allowable_characters[mt_rand(0,$ps_len-1)];
  
   }

   // Retun the password we've selected
   return $pass;
}
$password = generate_password();
echo $password;
?

--
---
Davy Obdam 
Web application developer

Networking4all
email: [EMAIL PROTECTED]
email: [EMAIL PROTECTED]
internet: http://www.networking4all.com
---


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


RE: [PHP] Password Generator Script

2002-07-27 Thread Naintara Jain

The following code was created to generate a random password.
But it can be used to generate a random string for any purpose.

The basic idea was to create an array that would contain all the letters of
the English alphabet, and pick out random values from that array. I have
outlined two methods below, please also read the explanation/comments
provided below.

Method 1:
$strrandom=””;

$ivalfrom =ord(a);
$ivalto =ord(z);

for($i=$ivalfrom; $i=$ivalto; $i++)
$arralpha[] = chr($i);

mt_srand ((double) microtime() * 100);

$rand_al = array_rand ($arralpha, 3);
$strrandom = $arralpha[$rand_al[0]] . $arralpha[$rand_al[1]] .
$arralpha[$rand_al[3]];
$numpart=mt_rand(10,99);
$strrandom .= $numpart;

echo random = $strrandom;


-

Method 2:
$strrandom=””;

$ivalfrom =ord(a);
$ivalto =ord(z);

for($i=$ivalfrom; $i=$ivalto; $i++)
$arralpha[] = chr($i);

mt_srand ((double) microtime() * 100);

$strrandom =
$arralpha[mt_rand(0,25)].$arralpha[mt_rand(0,25)].$arralpha[mt_rand(0,25)];
$numpart=mt_rand(10,99);
$strrandom .= $numpart;

echo random = $strrandom;

-

Explanantion:

/* I used a “for” loop to populate the array with the alphabets in lowercase
(to increase the number of values, you could probably insert uppercase
alphabets too). */

//first populate array with alphabets
$ivalfrom =ord(a);
$ivalto =ord(z);

//add the alphabets to the array
for($i=$ivalfrom; $i=$ivalto; $i++)
$arralpha[] = chr($i);

/* $arralpha is an array variable which refers to the array of 26 alphabets.
*/

/* I seed the random generator */
mt_srand ((double) microtime() * 100);

/* I wanted my string to contain 3 random letters. I use the array_rand()
function, which takes as input an array, and the number of random values
desired (which is 3 here, but it could be 26 too, equal to or less than the
size of the array). It returns an array, which contains indexes taken at
random from the array passed as the argument.*/

$rand_al = array_rand ($arralpha, 3);
/* Here, $rand_al is another array variable which contains random indexes */

$strrandom=””;
$strrandom = $arralpha[$rand_al[0]] . $arralpha[$rand_al[1]] .
$arralpha[$rand_al[3]];
/* In the above statement, the values in the $rand_al are really subscripts
of the alphabet array, so I use them as subscripts to finally arrive at the
random string. You could iterate through the generated $rand_al using a loop
to get the subscripts */

/* Please note that array_rand() will work for PHP4 and above, it may not
return random values if you do not seed the generator first, and it may
still create a problem on some windows machines (a bug, which has been fixed
on PHP 4.2.2 –dev version). In such a case, use Method 2. */

/* The two lines below add a 2-digit number to the random string. */
$numpart=mt_rand(10,99);
$strrandom .= $numpart;

-Naintara


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
t]On Behalf Of Liam MacKenzie
Sent: Thursday, July 25, 2002 1:04 PM
To: [EMAIL PROTECTED]; Monty
Subject: Re: [PHP] Password Generator Script


?
$password = substr(ereg_replace([^A-Za-z0-9], , crypt(time())) .
 ereg_replace([^A-Za-z0-9], , crypt(time())) .
 ereg_replace([^A-Za-z0-9], , crypt(time())),
 9, 10);
?

Random Password : b? echo $password; ?/b


In action:
http://scripts.operationenigma.net/passgen.php


Have fun  :-)





- Original Message -
From: Monty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 2:49 PM
Subject: [PHP] Password Generator Script


 Can anyone recommend where I could find a decent script that automatically
 generates passwords? I don't care if they are readable or just random
 letters, numbers.

 Thanks!


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







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





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




Re: [PHP] Password Generator Script

2002-07-25 Thread Liam MacKenzie

?
$password = substr(ereg_replace([^A-Za-z0-9], , crypt(time())) .
 ereg_replace([^A-Za-z0-9], , crypt(time())) .
 ereg_replace([^A-Za-z0-9], , crypt(time())),
 9, 10);
?

Random Password : b? echo $password; ?/b


In action:
http://scripts.operationenigma.net/passgen.php


Have fun  :-)





- Original Message -
From: Monty [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 2:49 PM
Subject: [PHP] Password Generator Script


 Can anyone recommend where I could find a decent script that automatically
 generates passwords? I don't care if they are readable or just random
 letters, numbers.

 Thanks!


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







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




[PHP] Password Generator Script

2002-07-24 Thread Monty

Can anyone recommend where I could find a decent script that automatically
generates passwords? I don't care if they are readable or just random
letters, numbers. 

Thanks!


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




Re: [PHP] Password Generator Script

2002-07-24 Thread Richard Baskett

Credits are with the file.  Cheers!

Rick

Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget them as soon as you can.
Tomorrow is a new day; you shall begin it serenely and with too high a
spirit to be encumbered with your old nonsense. - Ralph Waldo Emerson

 From: Monty [EMAIL PROTECTED]
 Date: Thu, 25 Jul 2002 00:49:17 -0400
 To: [EMAIL PROTECTED]
 Subject: [PHP] Password Generator Script
 
 Can anyone recommend where I could find a decent script that automatically
 generates passwords? I don't care if they are readable or just random
 letters, numbers.
 
 Thanks!
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



‹QÛíW{ÚF¿Aâ;Ì!¤Ø  Cȝ
áÒ*Ê£Ò5:å¡J¢“±ìÆö’õúIóÝû›µ
æÂ)U•ô¤Ê#›ÙyϺñ*ýU°:úQà
gì8xžNvÏÆÎðÈ9ŸœœpÆ£SÐï;ãGäü0*¥ÚUDG‰œKsó¾D.•Ì~œ“n   
:ŽÎZ͇l=?!ZM%d¡VۋÜ4í+7ñeü»T'J۞¶š5~ь±¦Ùڒzg©ÐV;
d¦Õíî°B™gaä›í§•U×÷_dñ\¨ÔºÏË­æJ…‰¦‚Ìßfõ‘QWí¾]
”XÌÚFw^ 
©sñüâòՓó§SztÖs—n˜¸¼{PZ:0¦ßvnÅ÷{Ÿñúp2¼^ÿã“ñ¨®ÿÿŠzo5wùaòaR©hî‘pSáOhä8£ž3îN[M7ӁTzŸÅð_ìÅa¹
Yæ÷Ï^zîRÆÒÏWõ=ۅlòEê©p¥C™LˆŒÝ÷%·8“î(áúîwÈ´Ë˔‰Ž6$’e¦AOÑÆî“”ðÉR±È
´‘­]ô
-qàZŠD(WZáx™‚ÓÕ¼Y1¯Šó©¼Ä‚»Ya’j^•Z†Wa²Ÿˆ¡éK¼€—“¼_AJe,HäÓ|žy»]ºàNú)ëÒüò'^ðËÇ

õû}²û­fà^ ZdIŸ…žHR1¡× g/ÞÐ3£}DÙ4:Ïéd=»8‡K­W“Á`½^÷å
˜ä‰¾TËA!(,WQ¯øÑçŽÇ§í=†[¡+z%ÍhÜw˜v|w°M„½øÜh5ƒ-¤Š]­Ù+ô]àx`N´|á…)b‹ˆ*A±ë
vA¼j¼ž
Aí¸®?N‚ߤ/ó$˜Ñë—ožLCD³È(Ô:Éd)Tɦçr-Ôc¤hɶ#½yü4T©®Ê[˜…Hh
m²ÕJ¨žÞ®ÑQ  
 ¦±¼ŠÞSˆúËù«üb¸m×Y|‘B   \É
Šªp†Ù²pkñN‰RðºJ¹«í¶»m
˜7fÔæû=øTHîOþmÛæ`ö)›Àû´Ê-·6£ºÝžnµ©ìb~WäÞ(Çúg`£Ã…Ö;Û)ðÖy·Õ7´çÐÕúÀp
ۧ#`
L€+ ¦@ÜÚWÀ5ðSnëÓ†»ÓÚ‹ýÀ¾Ñüö±ðЗ­a½ô×.P¦Òö¼ÂW™\ÙÅW”‰ëžaT̉û궻ýtt4̆ÎN¢/“½Dk˜À_Jui¤¡Yf„ü¼yrÜ9È|Nc„‘°Ž$Û-õDŠä7´†á®\\W[_þF¸°†³Ùþ¹… F'„œ$–“_éÌä°ý_E®¾{kwiXn°ß•R®:Ê
   
_J}G¥¾fC”+‹Pxt£Â{ºåEw@§œp³.ê.)«dãˆié9T¢jU¶Øg³Ð6™ Ìʕ‹ƒe¨ÄÄãeDbx-Ðõ0(Ñ£}ÊyyVš½KÄ

~ð%²Kô¶þÄìKÙG`B“6Y.®ÑŠŸíìJÖ]!Íæйªp×é–
O‹C!=·8×ó°ÉŒCIœùÒIEr!¸eZ[   ¦W¢™›}ðS™’yµéšOÛÇímš+¡3•Tw¬±rñ% A¦³zžE•‚³‹î«K¶
ìjUVþ}”e9ÞV%
²:ál8ÅxXF“Ü»ws…]³ˆ3N³ËêùÉÞ¥À·,üMm7}¶WÃTZº‹Le®îG)£•–fJîåùôº€bú^gÏë1ä”ø f†­È?ʜ^ÉCøµ?öo(6nŽ‘+«h‚©‰ª•W¤‡ž’:ŒáØ»Ãü_NeL}1÷„Ä\,Í5‹ÿÓÞöj¨¡†j¨¡†j¨¡†j¨¡†j¨¡†þWð7„RÁK(

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


RE: [PHP] Password Generator?

2001-04-19 Thread Grimes, Dean

Be carefull though, this password generator is not as random as it looks at
first glance:

Example:
Here is a list 100 seemingly random passords:

crastije 
cranocus 
frukaphe 
thogivot 
dricrope 
chevacot 
wrasipha 
staspofr 
spuphara 
prothidi 
prohopra 
clicafri 
besliruc 
catokipr 
gupaprus 
holofrec 
jodruwud 
kibreleb 
mewosliw 
masluwre 
puswewor 
rowrolum 
solugole 
uihestuh 
vedotrec 
wewusabo 
trategep 
brurosto 
frowrudr 
thidreto 
drebruha 
chedaclo 
wraclidr 
stuswuti 
sporanan 
swimicli 
slijudru 
clefracr 
batrinuc 
duuubesw 
dupraspu 
hosticre 
jichunot 
kekajebr 
lagiswow 
nubabrat 
puveuosi 
rosojano 
tinaswik 
tichepha 
jogucrod 
kibenabr 
liuihutr 
neruspau 
panecrir 
ruchiuap 
sofrujil 
uocreswu 
vibichid 
wepruuuc 
dricrope 
chevacot 
pheslepr 
staspofr 
spuphara 
swolekom 
prohopra 
clicafri 
bevewabo 
catokipr 
gupaprus 
guphewri 
jodruwud 
kibreleb 
lecidutr 
masluwre 
puswewor 
rupisepu 
solugole 
uihestuh 
uibritho 
wewusabo 
trategep 
cruswicl 
frowrudr 
thidreto 
drijomif 
chedaclo 
wraclidr 
wruuocru 
sporanan 
swimicli 
prichosp 
clefracr 
batrinuc 
cabohipr 
dupraspu 
hosticre 
jimouudr 
kekajebr


Here is the same list in sorted order:

batrinuc 
batrinuc 
besliruc 
bevewabo 
brurosto 
cabohipr 
catokipr 
catokipr 
chedaclo 
chedaclo 
chevacot 
chevacot 
clefracr 
clefracr 
clicafri 
clicafri 
cranocus 
crastije 
cruswicl 
drebruha 
dricrope 
dricrope 
drijomif 
dupraspu 
dupraspu 
duuubesw 
frowrudr 
frowrudr 
frukaphe 
gupaprus 
gupaprus 
guphewri 
holofrec 
hosticre 
hosticre 
jichunot 
jimouudr 
jodruwud 
jodruwud 
jogucrod 
kekajebr 
kekajebr 
kibenabr 
kibreleb 
kibreleb 
lagiswow 
lecidutr 
liuihutr 
masluwre 
masluwre 
mewosliw 
neruspau 
nubabrat 
panecrir 
pheslepr 
prichosp 
prohopra 
prohopra 
prothidi 
puswewor 
puswewor 
puveuosi 
rosojano 
rowrolum 
ruchiuap 
rupisepu 
slijudru 
sofrujil 
solugole 
solugole 
sporanan 
sporanan 
spuphara 
spuphara 
staspofr 
staspofr 
stuswuti 
swimicli 
swimicli 
swolekom 
thidreto 
thidreto 
thogivot 
tichepha 
tinaswik 
trategep 
trategep 
uibritho 
uihestuh 
uihestuh 
uocreswu 
vedotrec 
vibichid 
wepruuuc 
wewusabo 
wewusabo 
wraclidr 
wraclidr 
wrasipha 
wruuocru

As you can see, almost every password is duplicated at least once.


-Original Message-
From: Nathan Cassano [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 5:04 PM
To: 'Ashley M. Kirchner'; [EMAIL PROTECTED]
Subject: RE: [PHP] Password Generator?


Random Pronounceable Password Generator
This function generates random pronounceable passwords. (ie jachudru,
cupheki)

http://www.zend.com/codex.php?id=215single=1

-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:20 PM
To: PHP-General List
Subject: [PHP] Password Generator?



Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

AMK4


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Password Generator?

2001-04-19 Thread Jon Snell

There is code in the source for NetHack to create pronounceable words.
Also, combining words would probably be somewhat easy.  A lazy coder could
import a unix dictionary file into a MySQL table and do "select word from
word order by rand limit 2" and just combine the results.

-Original Message-
From: Plutarck [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 4:52 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Password Generator?


I believe there is an article on phpbuilder.com on "pronouncable passwords",
which is probably what you'll want to actually do. Using real words would
just be way too resource intensive.

I'd give you the direct link to the article, but it seems my internet
connection only works for NNTP and ftp downloads...my HTTP has broken for
the moment, and I have no idea why ;(


--
Plutarck
Should be working on something...
...but forgot what it was.


""Ashley M. Kirchner"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Is there an easy way to generate generic passwords based on
 (combined) dictionary words?  (ej: take two different words and put them
 together)

 AMK4

 --
 W |
   |  I haven't lost my mind; it's backed up on tape somewhere.
   |
   ~
   Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
   SysAdmin / Websmith   . 800.441.3873 x130
   Photo Craft Laboratories, Inc. .eFax 248.671.0909
   http://www.pcraft.com  . 3550 Arapahoe Ave #6
   .. .  .  . .   Boulder, CO 80303, USA



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Password Generator?

2001-04-19 Thread ..s.c.o.t.t.. [gts]

you could try swapping out some letters with
look-alike alphanum characters to make the password
a bit more secure

a=@
s=$
d=

thus, "password" = "p@$$wor"



 -Original Message-
 From: Jon Snell [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 19, 2001 11:47 AM
 To: [EMAIL PROTECTED]
 Subject: RE: [PHP] Password Generator?
 
 
 There is code in the source for NetHack to create pronounceable words.
 Also, combining words would probably be somewhat easy.  A lazy coder could
 import a unix dictionary file into a MySQL table and do "select word from
 word order by rand limit 2" and just combine the results.
 
 -Original Message-
 From: Plutarck [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 4:52 PM
 To: [EMAIL PROTECTED]
 Subject: Re: [PHP] Password Generator?
 
 
 I believe there is an article on phpbuilder.com on "pronouncable passwords",
 which is probably what you'll want to actually do. Using real words would
 just be way too resource intensive.
 
 I'd give you the direct link to the article, but it seems my internet
 connection only works for NNTP and ftp downloads...my HTTP has broken for
 the moment, and I have no idea why ;(
 
 
 --
 Plutarck
 Should be working on something...
 ...but forgot what it was.
 
 
 ""Ashley M. Kirchner"" [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 
  Is there an easy way to generate generic passwords based on
  (combined) dictionary words?  (ej: take two different words and put them
  together)
 
  AMK4
 
  --
  W |
|  I haven't lost my mind; it's backed up on tape somewhere.
|
~
Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
SysAdmin / Websmith   . 800.441.3873 x130
Photo Craft Laboratories, Inc. .eFax 248.671.0909
http://www.pcraft.com  . 3550 Arapahoe Ave #6
.. .  .  . .   Boulder, CO 80303, USA
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Password Generator?

2001-04-18 Thread Ashley M. Kirchner


Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

AMK4

--
W |
  |  I haven't lost my mind; it's backed up on tape somewhere.
  |
  ~
  Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
  SysAdmin / Websmith   . 800.441.3873 x130
  Photo Craft Laboratories, Inc. .eFax 248.671.0909
  http://www.pcraft.com  . 3550 Arapahoe Ave #6
  .. .  .  . .   Boulder, CO 80303, USA



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Password Generator?

2001-04-18 Thread David VanHorn

At 02:20 PM 4/18/01 -0600, Ashley M. Kirchner wrote:

 Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

Would be huge, and vulnerable to dictionary attack (of course)
You'd have to have a file containing all possible dictionary words, then 
the rest is dead easy, just do a randomized grab of two words from the pile.


I've seen PHP code for pronouncable non-words, like "optogru" and "umoktin"
These are far more secure.
--
Dave's Engineering Page: http://www.dvanhorn.org
Where's dave? http://www.findu.com/cgi-bin/find.cgi?kc6ete-9



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Password Generator?

2001-04-18 Thread Plutarck

I believe there is an article on phpbuilder.com on "pronouncable passwords",
which is probably what you'll want to actually do. Using real words would
just be way too resource intensive.

I'd give you the direct link to the article, but it seems my internet
connection only works for NNTP and ftp downloads...my HTTP has broken for
the moment, and I have no idea why ;(


--
Plutarck
Should be working on something...
...but forgot what it was.


""Ashley M. Kirchner"" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...

 Is there an easy way to generate generic passwords based on
 (combined) dictionary words?  (ej: take two different words and put them
 together)

 AMK4

 --
 W |
   |  I haven't lost my mind; it's backed up on tape somewhere.
   |
   ~
   Ashley M. Kirchner mailto:[EMAIL PROTECTED]   .   303.442.6410 x130
   SysAdmin / Websmith   . 800.441.3873 x130
   Photo Craft Laboratories, Inc. .eFax 248.671.0909
   http://www.pcraft.com  . 3550 Arapahoe Ave #6
   .. .  .  . .   Boulder, CO 80303, USA



 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Password Generator?

2001-04-18 Thread Nathan Cassano

Random Pronounceable Password Generator
This function generates random pronounceable passwords. (ie jachudru,
cupheki)

http://www.zend.com/codex.php?id=215single=1

-Original Message-
From: Ashley M. Kirchner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 1:20 PM
To: PHP-General List
Subject: [PHP] Password Generator?



Is there an easy way to generate generic passwords based on
(combined) dictionary words?  (ej: take two different words and put them
together)

AMK4


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]