Generate Random Password

[Solved] Generate Random Password | Php - Code Explorer | yomemimo.com
Question : how to generate ssh key in linux

Answered by : lucky-lyredragonbird

ssh-keygen -t rsa -b 4096
ssh-keygen -t dsa
ssh-keygen -t ecdsa -b 521
ssh-keygen -t ed25519

Source : https://www.ssh.com/ssh/keygen/ | Last Update : Thu, 02 Jul 20

Question : password generator

Answered by : jareer

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 : | Last Update : Fri, 14 May 21

Question : random password generator

Answered by : ivn-javier-londoo-rueda

function rand_string( $length ) {	$str = "";	$chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";	$size = strlen( $chars );	for( $i = 0; $i < $length; $i++ ) {	$str .= $chars[ rand( 0, $size - 1 ) ];	}	return $str;
}
//and call the function this way:
$mypass = rand_string(10);

Source : | Last Update : Mon, 16 Nov 20

Question : random password generator

Answered by : some-random-monkey

from random import randint
def create_random_chars(charCount): return "".join(chr(randint(33,126)) for i in range(charCount))
print(create_random_chars(10))
# Use Source to compile

Source : https://onecompiler.com/python | Last Update : Fri, 21 Jan 22

Question : generate random password

Answered by : nick-triantafillidis

var btn = document.getElementById("btn");
btn.addEventListener("click", function generate() { var generatePassword = ""; var password = document.getElementById("password"); var characters = "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*?"; for (var i = 0; i < 10; i++) { generatePassword += characters.charAt( Math.floor(Math.random() * characters.length) ); } password.innerHTML = generatePassword;
});

Source : | Last Update : Thu, 03 Dec 20

Question : generate random password

Answered by : nilso-viani

const generatePassword = (length = 10, specialChars = true) => { const alphaCodesArray = Array.from(Array(26)).map((e, i) => i + 65); const uppercaseAlphabetArray = alphaCodesArray.map((letterCode) => String.fromCharCode(letterCode)); const lowercaseAlphabetArray = uppercaseAlphabetArray.map(e => e.toLowerCase()); const uppercaseAlphabet = [...uppercaseAlphabetArray].join(''); const lowercaseAlphabet = [...lowercaseAlphabetArray].join(''); const numbers = [...Array(10).keys()].join(''); const specialSymbols = typeof specialChars === 'string' ? specialChars : (specialChars ? "!@#$%^&*?" : ""); const characters = `${lowercaseAlphabet}${numbers}${uppercaseAlphabet}${specialSymbols}`; return [...Array(length).keys()].reduce(acc => acc.concat(characters.charAt(Math.floor(Math.random() * characters.length))), '');
}

Source : | Last Update : Wed, 02 Feb 22

Answers related to generate random password

Code Explorer Popular Question For Php