RE: Random letter/number value

2001-01-31 Thread Raymond B.


digits = arrayNew(1) ;
passwd = "" ;

/* fill passwd i digits long w/ random selection of number, uppercase, or
lowercase characters */
for (i=1; i le 8; i=i+1) {
digits[1] = chr(randRange(48, 57)) ;
digits[2] = chr(randRange(65, 90)) ;
digits[3] = chr(randRange(97, 122)) ;
passwd = passwd & digits[randRange(1, 3)] ;
}


If you're not case sensitive feel free to remove digits[3] and change the
last randRange() to reflect it.


-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: January 31, 2001 10:56
To: CF-Talk
Subject: Random letter/number value


Hi,

I'd like to produce a random letter/number value for a password field, could
be around 8 characters I suppose.  Can I get help with this please?

Thanks,
Peter
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Random letter/number value

2001-01-31 Thread Steve Martin

The following should do what you want.












Steve

> -Original Message-
> From: Peter Benoit [mailto:[EMAIL PROTECTED]]
> Sent: 31 January 2001 15:56
> To: CF-Talk
> Subject: Random letter/number value
> 
> 
> Hi,
> 
> I'd like to produce a random letter/number value for a password 
> field, could
> be around 8 characters I suppose.  Can I get help with this please?
> 
> Thanks,
> Peter
> 
> 
>
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Random letter/number value

2001-01-31 Thread Christopher Olive, CIO

there are tags in the developer gallery for this.  search for "password".

chris olive, cio
cresco technologies
[EMAIL PROTECTED]
http://www.crescotech.com



-Original Message-
From: Peter Benoit [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 10:56 AM
To: CF-Talk
Subject: Random letter/number value


Hi,

I'd like to produce a random letter/number value for a password field, could
be around 8 characters I suppose.  Can I get help with this please?

Thanks,
Peter
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Random letter/number value

2001-01-31 Thread Aidan Whitehall

> I'd like to produce a random letter/number value for a 
> password field, could
> be around 8 characters I suppose.

Go to the Gallery on the Allaire site and do a search for a custom tag
called RandomPassword.

You can configure it to return variables.RandomPassword, formatted however
you like.

http://devex.allaire.com/developer/gallery/



-- 
Aidan Whitehall <[EMAIL PROTECTED]>
Netshopper UK Ltd
Advanced Web Solutions & Services

http://www.netshopperuk.com/
Telephone +44 (01744) 648650
Fax +44 (01744) 648651

~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists