Skip to content

Commit

Permalink
Improved code
Browse files Browse the repository at this point in the history
Nice project @varunherlekar. Still, there are some improvements which I've made. Some codes were ambiguous like importing unnecessary modules and print statements.
Also, you can add some more functionality like if the user needs numbers or alphabets or other signs. It will be hard for the user itself to remember the password rather than a hacker to crack it.
  • Loading branch information
AliHaider20 authored Jul 20, 2021
1 parent bc3ae7a commit 56c99d8
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions keypass.py
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
import random, os, sys

print ("STRONG PASSWORD GENERATOR")
print (" ")
print ("Tool By www.github.com/varunherlekar")

print (" ")
import random

print ("STRONG PASSWORD GENERATOR\n")
print ("Tool By www.github.com/varunherlekar\n")
print ("<===[[ coded by Varun Herlekar]]===>")

print (" ")


length=int(input("Enter The Length Of The Password: "))
print (" ")
print ("-----> Your Password Is Generated <----")
print (" ")
length=int(input("Enter The Length Of The Password: \n"))
print ("-----> Your Password Is Generated <----\n")
char="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890@#$%&*^"
password= (" ")
for i in range(length):

password+=random.choice(char)

password = "".join(random.choices(char,k=length))
print(password)
print (" ")
print ("-----> Copy The Password. Thank You For Using .<----")
print ("-----> Tool Created For WAP STTP Program.<----")
print (" ")

print ("-----> Copy The Password. Thank You For Using .<----\n")
print ("-----> Tool Created For WAP STTP Program.<----\n")

0 comments on commit 56c99d8

Please sign in to comment.