English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Passwords must contain at least three of the following combinations: Alpha characters-at least one lower case alpha character, Alpha characters-at least one upper case alpha character, Numeric characters-at least one lower numeric character, Special characters-at least one special character.

2006-09-11 22:13:24 · 6 answers · asked by vipin_sachan_pccs 1 in Computers & Internet Programming & Design

6 answers

Pseudo code

Int lowerCount = 0
Int upperCount = 0
Int numericCount=0
Int specialCount=0
Int testCount=0

do (i=0; i < length(password); i=i+1)
if (subtring(password,i,i+1) >= "a" and
subtring(password,i,i+1) <= "z")
lowerCount=1
endif
if (subtring(password,i,i+1) >= "A" and
subtring(password,i,i+1) <= "Z")
upperCount=1
endif
if (subtring(password,i,i+1) >= "0" and
subtring(password,i,i+1) <= "9")
numericCount=1
endif
// Sorry but I don't know what range
if (subtring(password,i,i+1) >= "£" and
subtring(password,i,i+1) <= "@")
specialCount=1
endif
end do;

testCount=lowerCount + upperCount + numericCount + specialCount

If (testCount < 3)
error
endif

2006-09-12 01:14:24 · answer #1 · answered by AnalProgrammer 7 · 0 0

what are you talking about? What kind of code and language you want your answer in? Use your noodle and ask proper questions and not lame one.

One fail to understand one's question.

2006-09-12 05:19:27 · answer #2 · answered by Joe_Young 6 · 0 0

that is the password policy. But what is your policy is out of my understanding.

2006-09-12 05:24:37 · answer #3 · answered by Nand Kishore 3 · 0 0

this is a password policy...but what do you want to do with it? change it or modify it or what?

2006-09-12 05:26:53 · answer #4 · answered by ashutosh s 2 · 0 0

yes

2006-09-12 05:15:13 · answer #5 · answered by jake cigar™ is retired 7 · 0 0

is it a question?

2006-09-12 05:15:39 · answer #6 · answered by babai_ib 3 · 0 0

fedest.com, questions and answers