muppet :-)

-----Original Message-----
From: Taz [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 13:55
To: [EMAIL PROTECTED]
Subject: Re: [ cf-dev ] Password creation


> Anyone got a password creator custom tag/UDF anywhere?

Password generator for stupid people:

<cfscript>
 // initialise string
 PasswordString = '';
 
 // loop through until password is desired length
 while (Len(PasswordString) LT 8) {
  if (Len(PasswordString) EQ 0) {
   NewLetter = Chr(112);
  } else if (Len(PasswordString) EQ 1) {
   NewLetter = Chr(97);
  } else if (Len(PasswordString) EQ 2 OR Len(PasswordString) EQ 3) {
   NewLetter = Chr(115);
  } else if (Len(PasswordString) EQ 4) {
   NewLetter = Chr(119);
  } else if (Len(PasswordString) EQ 5) {
   NewLetter = Chr(111);
  } else if (Len(PasswordString) EQ 6) {
   NewLetter = Chr(114);
  } else if (Len(PasswordString) EQ 7) {
   NewLetter = Chr(100);
  } 
  // add new letter to the string
  PasswordString = PasswordString&NewLetter;
 }
 
 // view the string
 writeoutput(PasswordString);
</cfscript>

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to