PageSourceSearch

https://bmaupin.github.io/weighted-password-generator/weighted-passgen-0.2.0.min.js

js bmaupin.github.io collected 2026-10-03 08:43:26 UTC 961 bytes, 1 lines download raw bytes

1var WeightedPasswordGen=function(){var a=function(a){this.chars=a,this.enabled=!0,this.weight=1},b=new a("abcdefghijkmnopqrstuvwxyz");b.weight=25;var c=new a("ABCDEFGHJKLMNPQRSTUVWXYZ"),d=new a("23456789"),e=new a("!@#$%^&*-=_+?"),f={lowerLetters:b,upperLetters:c,numbers:d,symbols:e},g=15,h=function(){var a=0,b=0;for(var c in f)f[c].enabled===!0&&(b+=f[c].weight);var d=Math.random()*b;for(c in f)if(f[c].enabled===!0&&(a+=f[c].weight,a>d))return f[c]},i=function(a){var b,c,d=a.length;if(d)for(;--d;)c=Math.floor(Math.random()*(d+1)),b=a[c],a[c]=a[d],a[d]=b;return a},j=function(){var b=[];for(var c in f)f[c].enabled===!0&&b.push(f[c].chars.charAt(Math.floor(Math.random()*f[c].chars.length)));for(var d=0,e=g-b.length;e>d;d++)a=h(),b.push(a.chars.charAt(Math.floor(Math.random()*a.chars.length)));return b=i(b),b.join("")},k=function(){return g},l=function(a){g=a};return{charClass:a,charClasses:f,genPassword:j,getPasswordLength:k,setPasswordLength:l}}();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.