Share your repls and programming experiences

← Back to all posts
Password Generator
Cryptos100 (54)

This Repl is the most efficient password generator that is designed to help you stay protected online.

What does it do?

It generates a password from 16 to 32 characters long, depends on your wish.

32 characters is the most protective password that is designed to drop the percentages of you getting hacked by 60!

Though, 16 is half of the percentage of 32 characters, it is still designed to keep you safe. However, this will take half the time for you password to get cracked.

Stay safe online, friends!

P.S. please upvote :)

Commentshotnewtop
studentAlfredAl (435)

Rip its returning an error right now

Andi_Chin (220)

you should replace some code with loops

Cryptos100 (54)

@Andi_Chin Good idea. I might make it be a looped terminal instead of it just stopping after it generated a password.

AnthonyYunLi (2)

This is really cool!

however, on line 34 it says "Your generated 16 characters password is:" and not 34

Cryptos100 (54)

@AnthonyYunLi Thanks, perfectly works. What's wrong with it?

AnthonyYunLi (2)

@old4trix In your chars32 function, it says "16" characters when it should be 32

DynamicSquid (4374)

Cool! Just a tip:

  def chars(num):
    password = ''
    for i in range(0, num):
      password = password + random.choice((chars))
    print("Your generated " + num + " characters password is: "+ password)

You can combine the 2 functions into one.

You can also ditch the char list and have a string instead:

chars = "abcdefghijklmnopqrstuvwxyz"

# still access it like a normal list
print(chars[0])
dilshaan (16)

Your generated password is: I
Your generated password is: I.
Your generated password is: I.o
Your generated password is: I.o8
Your generated password is: I.o8U
Your generated password is: I.o8Ub
Your generated password is: I.o8UbL
Your generated password is: I.o8UbL$
Your generated password is: I.o8UbL$L
Your generated password is: I.o8UbL$L
Your generated password is: I.o8UbL$L_y
Your generated password is: I.o8UbL$L_y

Your generated password is: I.o8UbL$L_y_K
Your generated password is: I.o8UbL$L_y_K5
Your generated password is: I.o8UbL$L_y_K5£
Your generated password is: I.o8UbL$L_y_K5£A
Your generated password is: I.o8UbL$L_y_K5£AP
Your generated password is: I.o8UbL$L_y_K5£APU
Your generated password is: I.o8UbL$L_y_K5£APU~
Your generated password is: I.o8UbL$L_y_K5£APU~y
Your generated password is: I.o8UbL$L_y_K5£APU~yy
Your generated password is: I.o8UbL$L_y_K5£APU~yyP
Your generated password is: I.o8UbL$L_y_K5£APU~yyPP
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPd
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPdX
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPdXU
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPdXU1
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPdXU10
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPdXU10M
Your generated password is: I.o8UbL$L_y_K5£APU~yyPPdXU10M/
^CTraceback (most recent call last):

That is my password.

Cryptos100 (54)

@dilshaan Very nice. Lol, just kidding. It got fixed.

dabs364 (276)

@old4trix @dilshaan If its your password....

WHY ARE YOU SHOWING IT???

Cryptos100 (54)

@dabs364

REEE! IT'S CALLED A TEST!

dabs364 (276)

@old4trix

OOOPSSSSSSSSSSSSSSSSSSSSSS THEN....

DSAMaximilian (9)

umm maybe a simple password would be nice anyway i should go to sleep soon its 0:10am where I'm at

Cryptos100 (54)

@DSAMaximilian Haha, the more random it is, the more protected it is.

Lethdev2019 (200)

simplify the code by using:

password = ''
for i in range(0, 32):
    password = password + random.choice((chars))

print("Your generated password is: "+password)

that is for generating a 32 letter character

password = ''
for i in range(0, 16):
    password = password + random.choice((chars))

print("Your generated password is: "+password)

that is for generating 16 letter passwords.

otherwise, it is generally good.

Cryptos100 (54)

@Lethdev2019 Could've done that too lol.

Lethdev2019 (200)

yeah, you could also do this:

letters = int(input('how long do you want your passwords? | '))
password = ''
for i in range(0, letters):
    password = password + random.choice((chars))

print("Your generated password is: "+password)

:D
@old4trix

Cryptos100 (54)

@Lethdev2019 Yeah, that's good. I might do that as an option.

Cryptos100 (54)

@Lethdev2019 Slight error, it repeats the same thing but adds another random character per range.

Lethdev2019 (200)

you indented the print statement into the loop. try unindenting the print command. @old4trix

MemeManHimself (92)

@Lethdev2019 hey how do you you use syntax highlighting?

Cryptos100 (54)

@Lethdev2019 Oh whoops. Works now. Thanks.

MemeManHimself (92)

instead of it being like

print("hello world")
``` have it highlighted like you did, @old4trix 
MemeManHimself (92)

whoops i mean intead of it being like
print("hello world")

Lethdev2019 (200)

oh it's markdown.
it goes three back-ticks, language name eg. js or python then three back ticks to close it.

like so:

becomes

for i in range(1,5):
   print ('hey')

@TheMemeManHimse

MemeManHimself (92)

or like

print("hello world")
MemeManHimself (92)

maybe like

const idk
var something = 10
Cryptos100 (54)

@TheMemeManHimse So, do you mean...

print("hello world")
Lethdev2019 (200)

just put this into markdown
but of course replace "code" with your code and "language" with the programming language you use for it.

@TheMemeManHimse

Lethdev2019 (200)

there you go. @TheMemeManHimse

print("hello!")
Cryptos100 (54)

@Lethdev2019 Bruh, I thought you were talking to me lol

MemeManHimself (92)

@Lethdev2019 lol oops

<h1>does this work too?</h1>
DSAMaximilian (9)

VERY GOOD but i dont think i would remember my passcode

Cryptos100 (54)

@DSAMaximilian Haha! I might create a password saver just for you!!! :D

Cryptos100 (54)

Haha @Lethdev2019, let's talk on the discord repl. I got an idea.

Lethdev2019 (200)

haha don't have discord.
i have a github orginisation [email protected]

Cryptos100 (54)

@Lethdev2019 Oof! Alright. Wanna work on a git clone but for Replit?

Lethdev2019 (200)

yeah, we'll do it on repl.it, i'll design a GUI as i have the right tools. @old4trix

Cryptos100 (54)

@Lethdev2019 Alright, sorry for the late message. What's the project called?

Lethdev2019 (200)

oh i thought it was the password thing we were working on. @old4trix

Lethdev2019 (200)

well... i have my hand full rn... i'll see what i can do. @old4trix

Cryptos100 (54)

@Lethdev2019 It's all good. Not really neccessary :)

Lethdev2019 (200)

i know. A screen recorder. @old4trix

Lethdev2019 (200)

@old4trix if you have a windows computer, you can just download it, run pip install mss screen_recorder_sdk pyqt5 opencv-python
and then just run it. will you be able to help me improve it (you were only online for 30 mins).

Cryptos100 (54)

@Lethdev2019 Sorry! I wish I could help during this time, I had to go outside. Yes, I will try to help you. Alright.

Cryptos100 (54)

@Lethdev2019 EEEE! I can't wake up at 8am ;(

Lethdev2019 (200)

are you online?
btw, i can wake up at 6am - it is part of my body clock @old4trix

[deleted]

Cool, I like it.

adhityanadathur (2)

wow i might use this for real world situations!

Cryptos100 (54)

@adhityanadathur Yeah! Good to use this, am I right?

GarryHo (6)

I made a JavaScript version of it... sorry

Cryptos100 (54)

@GarryHo Very epic! People made one in C# too.

CodeLongAndPros (1468)

This Repl is the most >>efficient<< password generator that is designed to help you stay protected online.

Here. You say it is the most efficient and yet it time.sleep(1)s for 'effect'

You also say 'hacked', when the correct term is 'cracked'.

I am a hacker. That is to say, I enjoy playing with computers — working with, learning about, and writing clever computer programs. I am not a cracker; I don't make a practice of breaking computer security.

There's nothing shameful about the hacking I do. But when I tell people I am a hacker, people think I'm admitting something naughty — because people misuse the word “hacker”, giving the impression that it means “security breaker” and nothing else.

If it sounds like I'm being 'toxic', I'm not trying to, but you just hit two of my pet peeves.

HahaYes (1250)

@CodeLongAndPros yes, they should read your "the media portrayal of linux"

Cryptos100 (54)

@CodeLongAndPros very epic way to expose me ;(

Cryptos100 (54)

@CodeLongAndPros says "hacker". aint hackers supposed to reveal themselves o_O

Cryptos100 (54)

@CodeLongAndPros Yes, yes. But I'm trying to explain to people who have no big brain like you.

HahaYes (1250)

@CodeLongAndPros yeah, anyways, I tried out Manjaro KDE, its awesome. Never would've gotten into linux if it weren't for you

CodeLongAndPros (1468)

@old4trix Still.
In that case, objection #2 is not valid, but #1 is.

CodeLongAndPros (1468)

@HahaYes Glad to help!

Super+. & alt-. is something to try in Kde.

MachineLearner1 (3)

This is so cool! You are so talented. Maybe next time, you can set up a system for the passwords to contain real words. Otherwise, great!

MemeManHimself (92)

This is pretty cool!! I think that I'ma stick with Lastpass, but if I didn't have that, I would definitely use this!

dilshaan (16)

@old4trix If you want to check out my codes, you can do it by going onto my profile picture and clicking it. I hope you like them.

Cryptos100 (54)

@dilshaan Yes, I know. Wow, you're so experienced!

Lethdev2019 (200)

)8~IVA6kkPkODUvwFePvJpJi.E3.2uf-U)0ydSAEz.$yGuGUay3D3lVssG)9bAk5DiOHxCmJM9PlxTjmaS/1WHOFAe8ZWJ.HpdYCM5NFKnSg.~#L_,_E!/cMUK1geiVr"!XA54956fAc"0tx)"CZEZ5#fT5wwZQB.L9yT4C%ICxYqW/perH9mpM?VC_£TViT.jwmi%jPpnqTBaYxvj"qkF.#wzFLLjoefzgSRml-CgjEA,b_OM2LJ#s3/£a6qVD-zqj£dJ"Z!h0H!o_!$O_zSIl?G"rw09qa9hs£n60Q£_1xJeBrvm7xHFk"7bNA6BQ.cbiERa8s#ApykZf5#YXicVT0ck,£6aM9WXZ(CB-Y"DcJ-x$KT,ddZN""V316q(u1cIyHFSUeABtR4tGbdtFB~gRd7GnD%pX?.la~MJR)h(qm%5Gd8BINaXzl5EU%.aG7s.z?tl_U2Fw.7£a!HWuaj?-eXDGS"hj(~IXI£xN£E6o0!jHx?)x)mtZuqvdpTK_(B4anLkOwC~wVaiVAzfIRu££yVxpekqCKNDU£ag#k#tlIn3S0D.rPcfvLh0JcssSNVeAmR.W(3mSOVJdg£jg,x,GjqunnhOH)..$?2CvuCzI2FtJW4fpg,UbW/Z0£S-)_SGGBV.hTy.5G5S7LfE)~G($56xPtIWTml$03X.afzk61acxtAHdT)U?79ES-.10TPQoPr.l?%tQQq4Qqu/ViXgmQf~V"5vD2/bRevHu%gl.#MhmnHM1DhgKq£U!~fGDm2.0b,waU_W./Xd-TvFkQ£s_HX4kP~yEL£k-O?JaaMC6V0)1knNQe#w!U0D?hRDRAPIdBWPSQ,e9Mw.53au)Yv6j1C0i.$q.£sfQxUVzj8H0s%(Zden/f9daSVl$S

one big password

Cryptos100 (54)

@Lethdev2019, wow. Good luck for a hacker to hack anyone with that password :D

eekboi (275)

@old4trix Honestly it would take a huge amount of time, but you could bruteforce it. Also nice password :D

DSAMaximilian (9)

wait my random [Spam removed by moderator]

eekboi (275)

@DSAMaximilian Please don't spam in your comments.

DSAMaximilian (9)

[Spam removed by moderator]

eekboi (275)

@DSAMaximilian Please don't spam in your comments.

eekboi (275)

@DSAMaximilian Sorry man, moderators gotta do what they gotta do.

Cryptos100 (54)

WATT YOUR A MODERAYTOTRTRR! OMGFG
@eekboi

DSAMaximilian (9)

#FISH FOR LIFE P.S. YOU PROBALLY WONT UNDER STAND BECAUSE ITS IN FORTNITE

adl212 (147)

Your chars32 function prints out that Your generated 16 characters password is: + password.

Cryptos100 (54)

@adl212 Doesn't show for me :/

adl212 (147)

@old4trix This is your chars32 functions:

def chars32():
    password = ''
    for i in range(0, 32):
        password = password + random.choice((chars))
    print("Your generated 16 characters password is: "+password)
Cryptos100 (54)

@adl212 Yes? It will add that text and the "password" that has been generated.

potatojs (799)

do you give me the permition to make a better version of this?
plz

3DKTH3PR0 (2)

Uh, I'm not gonna use this bc the passwords are too hard to remember

Cryptos100 (54)

@3DKTH3PR0 Then get a password saver :laughing_emoji: :(

3DKTH3PR0 (2)

@old4trix Nah btw I'm making a Username randomizer!!!

adl212 (147)

When I type 2 to get a 32 character long password, I get a 16 letter long password. When I type 1 to get a 16 character long password, I get a 32 letter long password.