genpass¶
Random password generator and its Alfred Script Filter entry point.
Charset design:
lowercase + uppercase + digits + symbols(!%@#&^*)minus visually-confusing characters:
0,1,l,I,o,O
Policy: every accepted password must contain at least one character from each of the four classes (lower, upper, digit, symbol) and must start with a letter — hand-typeable, mixed-class, and unambiguous when read aloud.
- afwf_genpass.genpass.is_valid_password(password: str) bool[source]¶
Check that
passwordsatisfies the four-class + starts-with-letter policy.
- afwf_genpass.genpass.random_password(length: int) str[source]¶
Generate one random password of
lengthchars; retries until valid.