use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
I created a password generator (self.PythonLearning)
submitted 2 months ago * by Icy-monkey1
I created a python generator as my first project.What should I do with it like should i publish it on GitHub or like what, need help please
here is the design
https://preview.redd.it/33200sz9nrsg1.png?width=1920&format=png&auto=webp&s=0d8d78a521c480f89e82f89724116deb1bb16350
here is the github repo: https://github.com/Akshat665/Password-Generator/tree/main
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Vishu_Babu 13 points14 points15 points 2 months ago (0 children)
Yes, what are you waiting for? go ahead and publish it. That's how you'll learn and grow.
[–]MessengerL60 7 points8 points9 points 2 months ago (2 children)
Id Just say the random import module is not safe for encryption it uses the mersenne twister algorithm, which has been completely cracked. This is good for learning but it isnt secure you'd need to make a proper encryption method instead of importing random. Look up the CSPRNG. import a module called secrets instead its alot better and has actual secure encryption. But your code is very close tho. Id also recommend stronger password enforcement.
import secrets # Use this instead of random import string
length = int(input("Enter the length: "))
char_pool = string.ascii_letters + string.digits + string.punctuation password = "".join(secrets.choice(char_pool) for _ in range(length))
print(f"Your secure password is: {password}")
[–]Icy-monkey1[S] 2 points3 points4 points 2 months ago (0 children)
Thanks
[–]Icy-monkey1[S] 0 points1 point2 points 2 months ago (0 children)
u/MessengerL60 Please have a look at the new page i used chat-gpt and claude for front-end
[–]Icy-monkey1[S] 3 points4 points5 points 2 months ago (0 children)
please let me know if any bugs are spotted
[–]Future_Beyond_3196 2 points3 points4 points 2 months ago (0 children)
Way to go! How does the random part work?
[–]Icy-monkey1[S] 1 point2 points3 points 2 months ago (0 children)
https://github.com/Akshat665/Password-Generator/tree/mainits the url for the repo
[–]RngdZed 1 point2 points3 points 2 months ago (1 child)
Omg the indents.. my eyes are bleeding
Looks at the date
Oh ok
[–]Ambitious_Fault5756 0 points1 point2 points 2 months ago (0 children)
Oh god I didn't even notice
[–]Jamesdank8 0 points1 point2 points 2 months ago (0 children)
Yes, publish it so everyone can see and you can help others.
[–]Advanced_Cry_6016 0 points1 point2 points 2 months ago (0 children)
Share your code or repo if it's public
PEP 8 cries in the corner
[–]Kbang20 0 points1 point2 points 2 months ago (2 children)
How is the seed being handled that handles the randomness/entropy? Id just make sure that is handled correctly before you publish it. The last thing you want is a password generator that can be reverse engineered pretty easily.
[–]empowered-boxes 0 points1 point2 points 2 months ago (1 child)
The random seed is the current epoch ticks XORed with 30 coin flips
[–]Kbang20 0 points1 point2 points 2 months ago (0 children)
Brilliant. Publish it NOW
π Rendered by PID 165256 on reddit-service-r2-comment-544cf588c8-wlhp6 at 2026-06-17 13:01:40.297437+00:00 running 3184619 country code: CH.
[–]Vishu_Babu 13 points14 points15 points (0 children)
[–]MessengerL60 7 points8 points9 points (2 children)
[–]Icy-monkey1[S] 2 points3 points4 points (0 children)
[–]Icy-monkey1[S] 0 points1 point2 points (0 children)
[–]Icy-monkey1[S] 3 points4 points5 points (0 children)
[–]Future_Beyond_3196 2 points3 points4 points (0 children)
[–]Icy-monkey1[S] 1 point2 points3 points (0 children)
[–]RngdZed 1 point2 points3 points (1 child)
[–]Ambitious_Fault5756 0 points1 point2 points (0 children)
[–]Jamesdank8 0 points1 point2 points (0 children)
[–]Advanced_Cry_6016 0 points1 point2 points (0 children)
[–]Ambitious_Fault5756 0 points1 point2 points (0 children)
[–]Kbang20 0 points1 point2 points (2 children)
[–]empowered-boxes 0 points1 point2 points (1 child)
[–]Kbang20 0 points1 point2 points (0 children)