Answers for "how to generate password automatically using python"

5

python password generator

import random
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@£$%^&*().,?0123456789'

number = input('Please enter a number of passwords.')
try:
    number = int(number)
except:
    print("Error, please enter a number!")

length = input('Length of password?')
try:
    length = int(length)
except:
    print("Error, please enter a number!")

print('nHere are your password(s):')

for pwd in range(number):
  password = ''
  for c in range(length):
    password += random.choice(chars)
  print(password)
Posted by: Guest on July-04-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

Code answers related to "how to generate password automatically using python"

Python Answers by Framework

Browse Popular Code Answers by Language