Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password generator_task1 #1

Open
prajju149 opened this issue Aug 30, 2024 · 1 comment
Open

password generator_task1 #1

prajju149 opened this issue Aug 30, 2024 · 1 comment

Comments

@prajju149
Copy link
Owner

import string
import random

if name == "main":
s1 = string.ascii_lowercase
#print(s1)
s2 = string.ascii_uppercase
#print(S2)
s3 = string.digits
#print(s3)
s4 = string.punctuation
#print(s4)
plen = int(input("Enter the password length\n"))
s = []
s.extend(list(s1))
s.extend(list(s2))
s.extend(list(s3))
s.extend(list(s4))

print("Your password is : ")
print("".join(random.sample(s, plen)))
#print("".join(s[0:plen]))
@prajju149
Copy link
Owner Author

this is a password generator application using Python, allowing users to specify the length and complexity of the password.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant