How to change one of these examples in order to have at least capital and a nubmer inside the password?
jQuery password generator
http://javascript.internet.com/passwords/password-generator.html
http://www.blazonry.com/javascript/password.php
or any other example :)
from the head:
function generatePassword(len){ var pwd = [], cc = String.fromCharCode, R = Math.random, rnd, i; pwd.push(cc(48+(0|R()*10))); // push a number pwd.push(cc(65+(0|R()*26))); // push an upper case letter for(i=2; i<len; i++){ rnd = 0|R()*62; // generate upper OR lower OR number pwd.push(cc(48+rnd+(rnd>9?7:0)+(rnd>35?6:0))); } // shuffle letters in password return pwd.sort(function(){ return R() - .5; }).join(''); }
Source: https://habr.com/ru/post/1436758/More articles:Recursive selection of categories - sqlRed ebony with the same key several times: store collections in nodes or store them as multiple nodes? - data-structuresHow to handle an exception from a specific database error - c #Android permissions in the manifest - androidto create a secure password in javascript - javascriptPHP / MySQL: joining three tables and joining results - sqlcalling an action in the controller via jQuery from cshtml and returning the value back - jqueryChange wise time checking in sql server - sql-serverHow to find a string pattern in Java - javaJQuery password generator - javascriptAll Articles