MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / generate

Method generate

keepercommander/generator.py:142–147  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140 ]
141
142 def generate(self) -> str:
143 password_list = []
144 for count, chars in self.category_map:
145 password_list.extend(choice(chars) for i in range(count))
146 shuffle(password_list)
147 return ''.join(password_list)
148
149 @classmethod
150 def create_from_rules(cls, rule_string: str, length: Optional[int] = None,

Callers 6

generateFunction · 0.95
executeMethod · 0.95
get_password_from_rulesFunction · 0.95
generate_passwordMethod · 0.95
get_new_passwordFunction · 0.95

Calls

no outgoing calls

Tested by 1