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

Method generate

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

Source from the content-addressed store, hash-verified

141 ]
142
143 def generate(self) -> str:
144 password_list = []
145 for count, chars in self.category_map:
146 password_list.extend(choice(chars) for i in range(count))
147 shuffle(password_list)
148 return ''.join(password_list)
149
150 @classmethod
151 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