- 1
Password length
How can i regulate password length for a password genrwtor
14 Answers
+ 4
but ur formation is wrong it will be
int (input ())
+ 3
np
+ 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
+ 2
yes...I have used it in my code you can see
+ 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.
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.
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.
0
thx
0
just one more question, can int(input)() be used to choose length of password?
0
thx
0
https://code.sololearn.com/cBtxnkEdmPaj/?ref=app
do you like It?
first code dont blame me if it sucks
0
nice