Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/geekcomputers/Python
/ gen_password
Method
gen_password
Password Generator/pass_gen.py:25–27 ·
view source on GitHub ↗
(sequence, passlength=8)
Source
from the content-addressed store, hash-verified
23
24
@staticmethod
25
def
gen_password(sequence, passlength=8):
26
password =
""
.join((secrets.choice(sequence)
for
i in range(passlength)))
27
return
password
28
29
30
class
Interface:
Callers
1
generate_password
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected