How about:
<CFSET AlphaUp="ABCDEFGHIJKLMNOPQRSTUVWXYZ">
<CFSET AlphaLow=LCase(AlphaUp)>
<CFSET Nums="0123456789">
<!--- <CFSET Punc="!@##$%^&*()-_=+';:/?.>,<`~" & '"'> --->
<CFSET CharPool=AlphaUp & AlphaDown & Nums>
<!--- <CFSET CharPool=AlphaUp & AlphaDown & Nums & Punc> --->
<CFSET PoolSize=Len(CharPool)>
<CFSET GenLen="8">
<CFSET GenWord="">
<CFLOOP FROM="1" TO="#GenLen#" INDEX="i">
<CFSET GenWord=GenWord & Mid(CharPool,(Rand() * PoolSize) + 1,1)>
</CFLOOP>
<CFOUTPUT>#GenWord#</CFOUTPUT>
HTH,
Rick
-----Original Message-----
From: Stas Newdel [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 28, 2000 4:49 PM
To: CFTalk
Subject: password generation code snippet needed
Hello,
Does anyone have code lying around that will generate an alpha-numeric mixed
case string? Thanks.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.