Answers for "how to make a password with python"

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
0

python password script

import sys

def main():

	print 'nPassword Request Program v.01n'
	
	password = 'abcd'
	user_input = raw_input('Please Enter Password: ')
	
	if user_input != password:
		sys.exit('Incorrect Password, terminating... n')
		
	print 'User is logged in!n'
	
if __name__ == "__main__":
	main()
Posted by: Guest on October-17-2020

Code answers related to "how to make a password with python"

Python Answers by Framework

Browse Popular Code Answers by Language