FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Basic-Programs-Python/Programs/passgen.py at master · Akshu-on-github/Basic-Programs-Python · GitHub
This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Akshu-on-github
/
Basic-Programs-Python
Public archive
Notifications
You must be signed in to change notification settings
Fork
23
Star
13
Code
Issues
0
Pull requests
0
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
Basic-Programs-Python
/
Programs
/
passgen.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
11 lines (10 loc) · 447 Bytes
Breadcrumbs
Basic-Programs-Python
/
Programs
/
passgen.py
Copy path
File metadata and controls
11 lines (10 loc) · 447 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
import
random
import
string
#User input password length
passlen
=
int
(
input
(
"Enter the length of password:"
))
password
=
''
#In the following line it joins the choice from the random module created in machine and it displays the
# password according to the size
password
=
''
.
join
([
random
.
choice
(
string
.
ascii_letters
+
string
.
digits
+
'!@#$%^&*'
)
for
n
in
range
(
passlen
)])
#Here a random password is created
print
(
"Your password is:-"
,
str
(
password
))
Back
|
FazBrowse Home
|
New Git URL