Javascript String Password generator

Description

Javascript String Password generator

var candidateChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890!@';
function genPwd(candidateChars, length, path) {
    if (length === 0) {
        console.log(path);/*  www  .  j  ava 2  s.  c om*/
        return;
    }
    for (var i = 0; i < candidateChars.length; i++) {
        genPwd(candidateChars, length - 1, path + candidateChars[i]);
    }
}
genPwd(candidateChars, 32, "");
//# sourceMappingURL=PwdGen.js.map



PreviousNext

Related