Here's one I got off this list a while ago.  Props to whoever wrote it,
because its helped me out a few times.

<cfscript>
        random_word = Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ", RandRange(1,26), 1);
        random_word = random_word & Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
RandRange(1,26), 1);
        random_word = random_word & Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
RandRange(1,26), 1);
        random_word = random_word & Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
RandRange(1,26), 1);
        random_word = random_word & Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
RandRange(1,26), 1);
        random_word = random_word & Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
RandRange(1,26), 1);
        random_word = random_word & Mid("ABCDEFGHIJKLMNOPQRSTUVWXYZ",
RandRange(1,26), 1);

        password = "#random_word##RandRange(1000,9999)#";
</cfscript>

<cfoutput>PASSWORD: <b>#password#</b></cfoutput>

it will generate a password with 7 random letter and a 4 digit number.

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