Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

password generator

function passwordGenerator(length) {
  const chars =
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890123456789012345678901234567890123456789!@#$%&*()_-+=!@#$%&*()_-+=!@#$%&*()_-+=!@#$%&*()_-+=";

  const password = [...Array(length)].reduce((accumulator, _element) => {
    const randomIndex = Math.floor(Math.random() * chars.length);
    return accumulator + chars[randomIndex];
  }, "");
  return password;
}
Comment

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)
Comment

online password generator

// psw generator 
function passwordGenerator(length) {
  const chars =
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890123456789012345678901234567890123456789!@#$%&*()_-+=!@#$%&*()_-+=!@#$%&*()_-+=!@#$%&*()_-+=";

  const password = [...Array(length)].reduce((accumulator, _element) => {
    const randomIndex = Math.floor(Math.random() * chars.length);
    return accumulator + chars[randomIndex];
  }, "");
  return password;
}

//=============================================
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)
Comment

random password generator

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);
Comment

password generator

Math.random()                        // Generate random number, eg: 0.123456
             .toString(36)           // Convert  to base-36 : "0.4fzyo82mvyr"
                          .slice(-8);// Cut off last 8 characters : "yo82mvyr"
Comment

random password generator

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
Comment

password generator

import random

name = input('What is your name? (It will be used in the password) ')

sletters = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
bletters = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
numbers = ['1', '2', '3', '4', '5', '6', '7', '8', '9']
others = ['`', '~', '!', '@', '#', '$', '%', '^', '&', '*']

rs = random.choice(sletters)
rs2 = random.choice(sletters)
rb = random.choice(bletters)
rb2 = random.choice(bletters)
rn = random.choice(numbers)
rn2 = random.choice(numbers)
ro = random.choice(others)
ro2 = random.choice(others)

password = name + rs + rb + rs2 + rn + ro + rn2 + rb2 + ro2

print(password)
Comment

Password Generator

import random
import string
total = string.ascii_letters + string.digits + string.punctuation
length = 16
password = "".join(random.sample(total, length))
print(password)
Comment

password generator

#python
from random import randint
import pyperclip

allSymbols = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '- ', '=', '`', '~', '!', '@', '#', '$', '%', '^', '&', '*', ' (', ' )', ' ¹', '²', '³', '⁴', '⁵', '⁶', '⁷', '⁸', '⁹', '⁰', '¡', '¤', '€', '¼', '½', ' ¾', '‘', '’', 'æ', '©', '®', 'þ', '«', '»', '"', "'", 'ß', '§', 'ð', 'œ', 'Æ', 'Œ', 'ø', '¶', 'Ø', '°', '¿', '£', '‘¥', '÷', '×', '/', '?' ]

password = ' '
lenSymbols = len(allSymbols)
recycleMe = int(input("how much characters do you want your password to be?     "))

for i in range(recycleMe):
    password = password + allSymbols[randint(0, lenSymbols)]
print(password)
#pyperclip.copy(password)
#print("copied to clipboard")
Comment

password generator

/*javascript*/ const generate = {password: function(length) {var password = ''; let allSymbols = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '- ', '=', '`', '~', '!', '@', '#', '$', '%', '^', '&', '*', ' (', ' )', ' ¹', '²', '³', '⁴', '⁵', '⁶', '⁷', '⁸', '⁹', '⁰', '¡', '¤', '€', '¼', '½', ' ¾', '‘', '’', 'æ', '©', '®', 'þ', '«', '»', '"', "'", 'ß', '§', 'ð', 'œ', 'Æ', 'Œ', 'ø', '¶', 'Ø', '°', '¿', '£', '‘¥', '÷', '×', '/', '?' ]; for (let step = 0; step < length; step++){password = password + allSymbols[Math.round(Math.random() * allSymbols.length)]}; return password; copy(password)}}
Comment

password generator

function password(length,base64) {
    //let num=typeof length=='number'?Math.round(Math.random()*length*36):Math.round(Math.random()*10*36)
    let ret='';for(let i=0;i<length;i++){ret+=Math.round(Math.random()*36).toString(36)}
    return base64?(btoa(ret)):ret
}
Comment

password genarator

Use this: https://pass.jassy.in/
Comment

Password generator

function createRandomPassword() { 

    $chars = "abcdefghijkmnopqrstuvwxyz023456789"; 
    srand((double)microtime()*1000000); 
    $i = 0; 
    $pass = '' ; 

    while ($i <= 7) { 
        $num = rand() % 33; 
        $tmp = substr($chars, $num, 1); 
        $pass = $pass . $tmp; 
        $i++; 
    } 

    return $pass; 

}
Comment

Generate Password

public string CreatePassword(int length)
{
  const string valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890<>.,/@#$%^&*()_+!:";
  StringBuilder res = new StringBuilder();
  Random rnd = new Random();
  while (0 < length--)
  {
    res.Append(valid[rnd.Next(valid.Length)]);
  }
  return res.ToString();
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript, dynamic variable, and function to add data to O 
Javascript :: setattribute 
Javascript :: react native radio buttons 
Javascript :: how can I send form data with image in angular 
Javascript :: get decimals from float javascript 
Javascript :: how to draw a long underline in react native 
Javascript :: Example of Reactjs Controlled-Components 
Javascript :: react native geocoding 
Javascript :: add two empty arrays javascript 
Javascript :: max string size javascript 
Javascript :: alert library css and js 
Javascript :: ?? javascript 
Javascript :: react native layout 
Javascript :: google maps address autocomplete in angular npm 
Javascript :: capitalize text js 
Javascript :: method example js 
Javascript :: list in react native 
Javascript :: react-anime 
Javascript :: form serialize object javascript 
Javascript :: document.ready javascript 
Javascript :: declaring two variables inside for loop 
Javascript :: nestjs queues 
Javascript :: mongoose find 
Javascript :: scroll to a section on click on sticky navbar menu html css js 
Javascript :: string equals javascript 
Javascript :: javascript constants 
Javascript :: what is event loop in javascript 
Javascript :: classnames 
Javascript :: deploying multiple sites in firebase 
Javascript :: set get variable in url 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =