Page 1 of 1 1
Topic Options
#171047 - 2006-12-05 11:34 AM udfPassword function
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
Hi

I am using udfPassword function. I am creating password for mailaccounts. The problem is that I am printing the password in excel and there you cant see the different between big i and little l.
Can I generate password and exclude some letters ?

Top
#171052 - 2006-12-05 03:10 PM Re: udfPassword function [Re: mima]
mima Offline
Hey THIS is FUN

Registered: 2002-01-25
Posts: 217
Loc: Jönköping, Sweden
I have done the following code:

Code:
 ; Create password with no i or l characters
$x = 0
While $x < 25
 $x = $x + 1
 Sleep 0.5
 SRnd(@msecs) 
 $Password = udfPassword("Aaacnnnn",,"il")
 ? "."
 For $Count = 1 to 8
  If SubStr($Password,$Count,1) = "i" Or SubStr($Password,$Count,1) = "l"
   ? $Password
  EndIf
 Next
Loop	


What I can read the function udfPassword should NOT produce any iIlL but when I run this code the password can have these letters.

Top
#171086 - 2006-12-06 05:07 AM Re: udfPassword function [Re: mima]
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11623
Loc: CA
Please take a look at this script from Richard.

I was going to write a fancy KiXform for this but ran into some issues with the graphics that I couldn't sort out and then Shawn went missing so I've dropped it for now

Excellent UDF script though, just no GUI for it at this time.

Flexible password generator
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=158693

.

Top
#171098 - 2006-12-06 01:33 PM Re: udfPassword function [Re: mima]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
I don't see how this is strictly a UDF/kix issue - just change the font in Excel to Courier - any serif typeface, actually, and the difference will become clear. Using a fixed-width font like Courier will also lessen any chance for mis-reading the password, especially if it is a complex sequence.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.046 seconds in which 0.021 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org