Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

password generator

function CreatePassword(PassLenght) {
    const Lenght = parseInt(PassLenght)
   	const Charecters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
    let Password = "";
    for (var i = 0, n = Charecters.length; i < Lenght; ++i) { Password += Charecters.charAt(Math.floor(Math.random() * n)); }
    console.log(Password)
    return Password;
}

CreatePassword(18)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #password #generator
ADD COMMENT
Topic
Name
8+7 =