Courtesy of CFTipsPlus.Com
RandomAlphaNumerical passwords:
<cfset NumbOfChars=8>
<CFSET NewPass = "">
<CFLOOP INDEX="RandAlhpaNumericPass"
FROM="1" TO="#NumbOfChars#">
<CFSET NewPass =
NewPass&Mid(
'ABCDEFGHIJCLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789'
,RandRange('1','66'),'1')>
</CFLOOP>
Then pass the value:
#newPass#
Hope this helps,
Pablo
http://www.cfm-resources.com
----- Original Message -----
From: "Robert Long" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 3:08 PM
Subject: RE: Random Password
> Here's one I use to create a random numeric password...
> <CFSET RandPassword = "#RandRange(0,99999999)#">
>
> hth
>
> -----Original Message-----
> From: Chris Badouin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 03, 2001 11:24 AM
> To: CF-Talk
> Subject: Random Password
>
>
> All-
>
> Sorry I am pressed for time today, but does any one have script for
> generating random passwords?
>
> CB
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists