Skip to content

Instantly share code, notes, and snippets.

@sotoz
Created January 18, 2016 20:43
Show Gist options
  • Save sotoz/321b1f7e587b6ac18725 to your computer and use it in GitHub Desktop.
Save sotoz/321b1f7e587b6ac18725 to your computer and use it in GitHub Desktop.
auto password generator javascript
// Auto Password Generator
function makePasswd()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < 8; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment