09
07Password Strength Finder Using jQuery Plugin
Hi friends today i am showing you how you can check your password strength. Password is one of the major authentication to prove identity or access approval for the user. In today’s workplace, almost everything we do requires some form of password-guarded access. Everyone know the password should be long, complicate and practically impossible to remember, but many of us still ignore those rules for the sake of convenience. Many people fall foul of poor password security at one point or another. So we are showing the password strength for the user how weak and strength is your password.
The world major password used by the user:
- 1. 123456
- 2. 12345678
- 3. abc123
- 4. monkey
- 5. lemon
- 6. baseball
- 7. football
- 8. iloveyou
- 9. master
- 10. sunshine
- 11. passw0rd
- 12. 123123
- 13. shadow
- 14. 111111
- 15. 654321
- 16. qazwsx
- 17. michael
- 18. america
- 19. Dragaon
- 20. ashley
- 21. bailey
- 22. trustme
- 1. Minimum 6 character
- 2. Include One Uppecase character
- 3. One special character
- 4. One aphaumeric character
- 5. One digit
-
Depending upon the above rules we have created the password strength checker to check your password.
HTML Code:
Password Strength Finder
Javascript Code:
$(document).ready(function () { "use strict"; var options = {}; options.ui = {showErrors:false, showVerdictsInsideProgressBar:true, container:'#pw-val-container',viewports:{progress:'#pw-val-progress',verdict:'#pw-val- verdict',errors:'#pw-val-errors'}}; $('#Password').pwstrength(options); });
Password Strength Jquery Plugin:
! function(n) {
var r = {},
n, u, t, i, f;
try {
!n && module && module.exports && (n = require("jquery"), u = require("jsdom").jsdom, n = n(u().parentWindow))
} catch (e) {}! function(n, t) {
"use strict";
var i = {};
t.forbiddenSequences = ["0123456789", "abcdefghijklmnopqrstuvwxyz", "qwertyuiop", "asdfghjkl", "zxcvbnm", "!@#$%^&*()_+"];
i.wordNotEmail = function(n, t, i) {
return t.match('/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i') ? i : 0
};
i.wordLength = function(n, t, i) {
var r = t.length,
u = Math.pow(r, n.rules.raisePower);
return r < n.common.minChar && (u += i), u
};
i.wordSimilarToUsername = function(t, i, r) {
var u = n(t.common.usernameField).val();
return u && i.toLowerCase().match(u.toLowerCase()) ? r : 0
};
i.wordTwoCharacterClasses = function(n, t, i) {
return t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/) || t.match(/([a-zA-Z])/) && t.match(/([0-9])/) || t.match(/(.[!,@,#,$,%,\^,&,*,?,_,~])/) && t.match(/[a-zA-Z0-9_]/) ? i : 0
};
i.wordRepetitions = function(n, t, i) {
return t.match(/(.)\1\1/) ? i : 0
};
i.wordSequences = function(i, r, u) {
var f, e = !1;
return r.length > 2 && (n.each(t.forbiddenSequences, function(t, i) {
var u = [i, i.split("").reverse().join("")];
n.each(u, function(n, t) {
for (f = 0; f < r.length - 2; f += 1) t.indexOf(r.toLowerCase().substring(f, f + 3)) > -1 && (e = !0)
})
}), e) ? u : 0
};
i.wordLowercase = function(n, t, i) {
return t.match(/[a-z]/) && i
};
i.wordUppercase = function(n, t, i) {
return t.match(/[A-Z]/) && i
};
i.wordOneNumber = function(n, t, i) {
return t.match(/\d+/) && i
};
i.wordThreeNumbers = function(n, t, i) {
return t.match(/(.*[0-9].*[0-9].*[0-9])/) && i
};
i.wordOneSpecialChar = function(n, t, i) {
return t.match(/.[!,@,#,$,%,\^,&,*,?,_,~]/) && i
};
i.wordTwoSpecialChar = function(n, t, i) {
return t.match(/(.*[!,@,#,$,%,\^,&,*,?,_,~].*[!,@,#,$,%,\^,&,*,?,_,~])/) && i
};
i.wordUpperLowerCombo = function(n, t, i) {
return t.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/) && i
};
i.wordLetterNumberCombo = function(n, t, i) {
return t.match(/([a-zA-Z])/) && t.match(/([0-9])/) && i
};
i.wordLetterNumberCharCombo = function(n, t, i) {
return t.match(/([a-zA-Z0-9].*[!,@,#,$,%,\^,&,*,?,_,~])|([!,@,#,$,%,\^,&,*,?,_,~].*[a-zA-Z0-9])/) && i
};
t.validation = i;
t.executeRules = function(i, r) {
var u = 0;
return n.each(i.rules.activated, function(f, e) {
if (e) {
var o, h, c = i.rules.scores[f],
s = t.validation[f];
n.isFunction(s) || (s = i.rules.extra[f]);
n.isFunction(s) && (o = s(i, r, c), o && (u += o), (0 > o || !n.isNumeric(o) && !o) && (h = i.ui.spanError(i, f), h.length > 0 && i.instances.errors.push(h)))
}
}), u
}
}(n, r);
try {
module && module.exports && (module.exports = r)
} catch (e) {}
t = {};
t.common = {};
t.common.minChar = 6;
t.common.usernameField = "#username";
t.common.userInputs = [];
t.common.onLoad = void 0;
t.common.onKeyUp = void 0;
t.common.zxcvbn = !1;
t.common.debug = !1;
t.rules = {};
t.rules.extra = {};
t.rules.scores = {
wordNotEmail: -100,
wordLength: -50,
wordSimilarToUsername: -100,
wordSequences: -50,
wordTwoCharacterClasses: 2,
wordRepetitions: -25,
wordLowercase: 1,
wordUppercase: 3,
wordOneNumber: 3,
wordThreeNumbers: 5,
wordOneSpecialChar: 3,
wordTwoSpecialChar: 5,
wordUpperLowerCombo: 2,
wordLetterNumberCombo: 2,
wordLetterNumberCharCombo: 2
};
t.rules.activated = {
wordNotEmail: !0,
wordLength: !0,
wordSimilarToUsername: !0,
wordSequences: !0,
wordTwoCharacterClasses: !1,
wordRepetitions: !1,
wordLowercase: !0,
wordUppercase: !0,
wordOneNumber: !0,
wordThreeNumbers: !0,
wordOneSpecialChar: !0,
wordTwoSpecialChar: !0,
wordUpperLowerCombo: !0,
wordLetterNumberCombo: !0,
wordLetterNumberCharCombo: !0
};
t.rules.raisePower = 1.4;
t.ui = {};
t.ui.bootstrap2 = !1;
t.ui.showProgressBar = !0;
t.ui.showPopover = !1;
t.ui.showStatus = !1;
t.ui.spanError = function(n, t) {
"use strict";
var i = n.ui.errorMessages[t];
return i ? '' + i + "<\/span>" : ""
};
t.ui.errorMessages = {
wordLength: "Your password is too short",
wordNotEmail: "Do not use your email as your password",
wordSimilarToUsername: "Your password cannot contain your username",
wordTwoCharacterClasses: "Use different character classes",
wordRepetitions: "Too many repetitions",
wordSequences: "Your password contains sequences"
};
t.ui.verdicts = ["Weak", "Normal", "Medium", "Strong", "Very Strong"];
t.ui.showVerdicts = !0;
t.ui.showVerdictsInsideProgressBar = !1;
t.ui.showErrors = !1;
t.ui.container = void 0;
t.ui.viewports = {
progress: void 0,
verdict: void 0,
errors: void 0
};
t.ui.scores = [14, 26, 38, 50];
i = {};
! function(n, t) {
"use strict";
var r = ["danger", "warning", "success"],
i = ["error", "warning", "success"];
t.getContainer = function(t, i) {
var r;
return r = n(t.ui.container), r && 1 === r.length || (r = i.parent()), r
};
t.findElement = function(n, t, i) {
return t ? n.find(t).find(i) : n.find(i)
};
t.getUIElements = function(n, i) {
var u, r;
return n.instances.viewports ? n.instances.viewports : (u = t.getContainer(n, i), r = {}, r.$progressbar = t.findElement(u, n.ui.viewports.progress, "div.progress"), n.ui.showVerdictsInsideProgressBar && (r.$verdict = r.$progressbar.find("span.password-verdict")), n.ui.showPopover || (n.ui.showVerdictsInsideProgressBar || (r.$verdict = t.findElement(u, n.ui.viewports.verdict, "span.password-verdict")), r.$errors = t.findElement(u, n.ui.viewports.errors, "ul.error-list")), n.instances.viewports = r, r)
};
t.initProgressBar = function(i, r) {
var f = t.getContainer(i, r),
u = "
Social Oauth Login
Personalized Map Navigation
Online Image Compression Tool
Image Compression
Advertisement
Recent Posts
-
« Personalized Map Navigation
-
« Remjs solves the problem of mobile terminal adaptation
-
« Picture centered vertically
-
« Colorful Diwali Wishes Share Via Whatsapp and Facebook
-
« Get City and State by ZipCode Using Google Map Geocoding API
Categories