Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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)
Source by onecompiler.com #
 
PREVIOUS NEXT
Tagged: #password #generator
ADD COMMENT
Topic
Name
7+6 =