Password Generator
import string
import random
import time
if __name__ == "__main__":
s1 = string.ascii_lowercase
s2 = string.ascii_uppercase
s3 = string.digits
s4 = string.punctuation
plen = int(input("What should be the Password Length? (In Numbers Only)\n")) # Todo: Handle Gibberish
s = []
s.extend(list(s1))
s.extend(list(s2))
s.extend(list(s3))
s.extend(list(s4))
random.shuffle(s)
print("Your New Password Is:")
print("".join(s[0:plen]))
print("Thank You For Using Password Generator.")
print("If you are not satisfied with your new Password then Retry Again.")
time.sleep(10)

Comments
Post a Comment