Answers for "strong password generator python"

10

password generator python

import string
from random import *
characters = string.ascii_letters + string.punctuation  + string.digits
password =  "".join(choice(characters) for x in range(randint(8, 16)))
print password
Posted by: Guest on July-26-2020
1

python random password generator

import random

alph = list('ABCDEFGHIJKLMNOPQRSTUVWXYZ
             abcdefghijklmnopqrstuvwxyz
             1234567890 !@#$%^&*(){}[]<>,.')
out = ''
for char in string:
    out += random.choice(alph)
    
print(out)
Posted by: Guest on April-08-2020
3

python password generator

import random
import string

x = str(input("Do you want a password? y/n "))

list = []
if x == "y":
    print("Alright!")
    for i in range(16):
        _1 = random.choice(string.ascii_letters)
        _2 = random.randint(1, 9)
        list.append(_1)
        list.append(_2)
else:
    print("ok")


def convert(list): 
      
    s = [str(i) for i in list] 
      
    res = "".join(s) 
      
    return(print(res))



convert(list)
Posted by: Guest on February-12-2021
2

how to create a password generator in python

#Simple Way To Make Password Generator
#NickSiteCoder
import random

characters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ123456789!@€$#%({)}],/<.>[*^&"

while 1:
    length = int(input("What length would you like your password to be ? :"))
    count = int(input("How many passwords would you like ? "))
    for x in range(0, count):
        password = ""
        for x in range(0,password_len):
            password_characters = random.choice(characters)
            password      = password + password_characters
        print("Here is your password : ",password)
Posted by: Guest on May-17-2021
6

python random password generator

import random

print("Welcome to your own password Generator")

cherecters_for_Genarating_password = ("1234567890qwertyuiopasdfghjklzxcvnmQWERTYUIOPASDFGHJKLZXCVNM*&%$#@!")
try:
    
    TO_GENERATE = int(input("How many passwords you have to create:- "))
    
    #print(TO_GENERATE)
    
    Length_of_password = int(input("What should be the lenth of your password:- "))
    
    print("So these are your passwords:- ")
    #main code
    for passw in range(TO_GENERATE+1):
        print("      or")
        password = ""
        for should_apply in range (Length_of_password):
            password += random.choice(cherecters_for_Genarating_password)
        print(password)
    
    print("Are these passwords satisfing you Y/N")
    satisfing = str(input())
        
    if satisfing == "Y" or satisfing == "y":
        print("Ok sir Thanks")
    elif satisfing == "N" or satisfing == "n":
        print("So these are your passwords Again:- ")
        for passw in range(TO_GENERATE):
            password = ""
            for should_apply in range (Length_of_password):
                password += random.choice(cherecters_for_Genarating_password)
            print(password)
    else:
        print("incorrect input")
except ValueError:
    print("Incorrect input Sorry")
Posted by: Guest on June-25-2021

Code answers related to "strong password generator python"

Python Answers by Framework

Browse Popular Code Answers by Language