Seems unlikely, but it does generate some great words like "teethuku" and "taafduno" 
and the unforgettable "fuoflyru".  Fun script.

> -----Original Message-----
> From: Erika L Walker [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 12:19 PM
> To:   CF-Talk
> Subject:      RE: Code Snippet:Random Password Generator(repost)
> 
> What if it randomly generates a bad word?
> 
> Erika
> (with a *K*)
> 
> -----Original Message-----
> From: Daniel Kemp [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 10, 2001 11:42 AM
> To: CF-Talk
> Subject: RE: Code Snippet:Random Password Generator(repost)
> Seems un
> 
> > > Why define the alphabet? Just use decimal values for the
> > asci char set.
> 
> Ok here's another code snippet, this is a password gen that I use now
> and then.  The slight advantage of this one is
> it creates a word which hopefully more rememberable than just random
> letters and numbers.  There's more than one occurrence of some letters
> to tip the odds towards those.
> 
> ---------------------------------------
> <cfset password = "">
> <cfset constList = 
>"bbbbcdddffggghhhhhhhhjjklllllmmmmmmnnnnnnpppprrrrrrsssssssssstttttttttttvwwwxyz">
> <cfset vowelList = "aaaaaaaaeeeeeeeeeeeeeeeeeiiiiioooooouuuuuuuyy">
> <cfloop INDEX="R8ix" FROM="1" TO="8">
>       <cfif R8ix EQ 1 or R8ix EQ 4 or R8ix EQ 5 or R8ix EQ 7>
>               <cfset password =password & 
>Mid(constList,RandRange('1',len(constList)),'1')>
>       <cfelse>
>               <cfset password = password & 
>Mid(vowelList,RandRange('1',len(vowelList)),'1')>
>       </cfif>
> </cfloop>
> 
> <cfoutput>#password#</cfoutput>
> ---------------------------------
> 
> 
> Hope this helps someone.
> 
> Dan.
> 
> 
> 
> This message is intended only for the use of the person(s) ("the intended
> recipient(s)") to whom it is addressed.
> 
> It may contain information which is privileged and confidential within the
> meaning of the applicable law.
> If you are not the intended recipient, please contact the sender as soon as
> possible.
> The views expressed in this communication may not necessarily be the views
> held by Live Information Systems Limited.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to