Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

password

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

date | md5sum
Comment

Password

<table>
   <th><div id="button" class="btn1"onclick="genPassword()">Generate</div></th>
   <th><a  id="button" class="btn2" onclick="copyPassword()">Copy</a></th>
</table>
Comment

Password

<input type="text" name="" placeholder="Create password" id="password" readonly>
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript filter example 
Javascript :: brightness javascript 
Javascript :: function generator js 
Javascript :: discord js bot leave voice channel 
Javascript :: what is slot in vue.js 
Javascript :: localstorage in next js 
Javascript :: convert html to javascript 
Javascript :: create a class variable js 
Javascript :: destructuring in javascript 
Javascript :: anti aliasing 
Javascript :: process node.js example 
Javascript :: object length 
Javascript :: async storage set 
Javascript :: get the last item in an array 
Javascript :: javascript make do while loop 
Javascript :: type conversion in javascript 
Javascript :: show uploaded image in react/nextjs 
Javascript :: why we use $ in jquery 
Javascript :: set element at index javascript array and create new array 
Javascript :: javascript number() method 
Javascript :: js infinite loop 
Javascript :: twitter javascript api 
Javascript :: js role giveving 
Javascript :: set className with ref react 
Javascript :: i get two times event click of button javascript 
Javascript :: how to add data modal target attribute in jquery 
Javascript :: jquery check if eleme 
Javascript :: set twig variable from javascript 
Javascript :: javascript closest child 
Javascript :: url 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =