#1 JS Random Password Generator
This is the most lightweight way possible (light on code, not CPU) to create random passwrods with high qualtiy randomness.
var text = "";
var string = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@^_()%+=-";
for( var i=0; i < 8; i++ )
text += string.charAt(Math.floor(Math.random() * string.length));
</script> <button onclick="alert(randompwd(8))">Generate Random Passwords</button>
#2 JS Random Password Generator
current = current ? current : '';
return length ? randompwd( --length ,
.charAt( Math.floor( Math.random() * 60 ) ) + current ) : current;
</script> <button onclick="alert(randompwd(5))">Generate Random Passwords</button>
- You can always change the password length and the password characters in the JS code.
Remember JS Random Passwords
Generating random passwords is easy, but it's more difficult to remember them, especially for an array of random passwords. Thus, a password manager like Roboform is very useful. With it, you just need ensure not to forget the Master password, and Roboform remembers all your secure random passwords, safely encrypted.