Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

1 line password strength checker jquery


var pass = "f00Bar!";

var strength = 1;
var arr = [/.{5,}/, /[a-z]+/, /[0-9]+/, /[A-Z]+/];
jQuery.map(arr, function(regexp) {
  if(pass.match(regexp))
     strength++;
});

Source by devarama.com #
 
PREVIOUS NEXT
Tagged: #line #password #strength #checker #jquery
ADD COMMENT
Topic
Name
4+9 =