This should work:

<cfset pass = "">
<cfloop from="1" to="8" index="i">
        <cfset pass = "#pass##Chr(RandRange(97,122))#">
</cfloop>

This will generate a random 8 character password if you need a different
length then just change 'to' in the cfloop tag.


-----Original Message-----
From: Chris Badouin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 03, 2001 9: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

Reply via email to