shek
Level 1
Write the reason you're deleting this FAQ
<html>
<head>
<script language="javascript">
function passwordStrength(pwd){
var msg = "Your Password is too weak!";
var pwdPoint = pwd.length;
var pwdIndicator = document.getElementById('pwdIndicator');
var lowerCaseCheck = new RegExp("[a-z]"); //checking for existence of lower case letter
var upperCaseCheck = new RegExp("[A-Z]"); //checking for existence of upper case letter
var numberExistenceCheck = new RegExp("[0-9]"); //checking for existence of number
var symbolExistenceCheck = new RegExp("\\W"); //checking for existence of symbol
if(pwdPoint > 7)
{
pwdPoint = 0;
if(lowerCaseCheck.test(pwd)) { pwdPoint += 4; }
if(upperCaseCheck.test(pwd)) { pwdPoint += 4; }
if(numberExistenceCheck.test(pwd)) { pwdPoint += 4; }
if(symbolExistenceCheck.test(pwd)) { pwdPoint += 4; }
if(pwdPoint>=16) { msg = "Your Password is Strong!"; }
else if(pwdPoint>=12) { msg = "Your Password is Normal!"; }
else if(pwdPoint>=8) { msg = "Your Password is weak!"; }
else if(pwdPoint>=4) { msg = "Your Password is too weak!"; }
else { msg = "Your Password is too weak!"; }
}
pwdIndicator.innerHTML = msg ;
}
</script>
</head>
<body>
<input type="text" name="pwd" id="pwd" size="20" onkeyup="return passwordStrength(this.value);" />
<span id="pwdIndicator" name="pwdIndicator"><b>Password Check!</b></span>
</body>
</html>

Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
Are you sure you want to delete this post?
tionna
Are you sure you want to delete this post?