This code will generate mixed case passwords:
!
~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives:
There are many options on the Developer's Exchange:
http://devex.allaire.com/Developer/Gallery/SearchResults.cfm?keywords=r
andom+password
Jamie
On Thu, 6 Dec 2001 10:29:46 -0800, in cf-talk you wrote:
Does Anybody know how to generate random passwords for new users?
There are various ways. One is as simple as:
!--- All the letters of the alphabet plus the numbers (26 + 10) ---
cfset radix=36
!--- Password length ---
cfset length=8
cfset pwd=
!--- Etc. ---
cfloop from=1 to=#length# index=i
cfset pwd = pwd FormatBaseN(Rand()*radix,radix)
/cfloop
uh what code would that be? :) seems to have gotten cut off
-Original Message-
From: Joseph DeVore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:52 PM
To: CF-Talk
Subject: RE: Random passwords
This code will generate mixed case passwords
]]
Sent: Thursday, December 06, 2001 10:56 AM
To: CF-Talk
Subject: RE: Random passwords
uh what code would that be? :) seems to have gotten cut off
-Original Message-
From: Joseph DeVore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 1:52 PM
To: CF-Talk
Subject: RE: Random
thanks all.. I got it. ;)
-Original Message-
From: Joseph DeVore [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 11:06 AM
To: CF-Talk
Subject: RE: Random passwords
sorry, cf-talk chopped the code from last email:
http://cftags.veloxweb.com/passwords.cfm
It's a custom
6 matches
Mail list logo