- 1

Password length

How can i regulate password length for a password genrwtor

30th May 2018, 12:36 AM
TheNuclearMango
14 Answers
+ 4
but ur formation is wrong it will be int (input ())
30th May 2018, 3:39 AM
FATIN SHADAB
FATIN SHADAB - avatar
+ 3
np
30th May 2018, 3:40 AM
FATIN SHADAB
FATIN SHADAB - avatar
+ 3
It is nice and perfectly runs...so l should hit the up arrow ...but my id is not activated so I cant...sorry frnd
30th May 2018, 3:55 AM
FATIN SHADAB
FATIN SHADAB - avatar
+ 2
yes...I have used it in my code you can see
30th May 2018, 3:38 AM
FATIN SHADAB
FATIN SHADAB - avatar
+ 1
Another option to what Pedro said, if you are using a graphical interface, is to limit the number of characters that the text box supports.
30th May 2018, 1:08 AM
Mickel
Mickel - avatar
17th Jul 2018, 5:21 PM
FATIN SHADAB
FATIN SHADAB - avatar
0
Which language you’ll be using? Anyway you can get the password as a string and check how many characters there are in it. Then you only accept passwords with the lengths you want, e.g. with a while loop.
30th May 2018, 1:03 AM
Pedro Demingos
Pedro Demingos - avatar
30th May 2018, 1:16 AM
TheNuclearMango
0
If you’ll be generating random passwords on Python, take a look at the random module. It’ll help you making random strings with specific lenghts.
30th May 2018, 1:53 AM
Pedro Demingos
Pedro Demingos - avatar
0
thx
30th May 2018, 2:17 AM
TheNuclearMango
0
just one more question, can int(input)() be used to choose length of password?
30th May 2018, 2:30 AM
TheNuclearMango
0
thx
30th May 2018, 3:39 AM
TheNuclearMango
0
https://code.sololearn.com/cBtxnkEdmPaj/?ref=app do you like It? first code dont blame me if it sucks
30th May 2018, 3:42 AM
TheNuclearMango
0
nice
18th Jul 2018, 5:53 AM
TheNuclearMango