bh_utils.password_funcs module

Some password routines.

For usage examples, see ./tests/test_password_funcs.py.

bh_utils.password_funcs.generate_password(min_length: int, max_length: int) str

Generate a random password of symbols, digits and letters. The length is random within min_length and max_length.

Source: https://geekflare.com/password-generator-python-code/

Parameters:
  • min_length (int) – password random min length.

  • max_length (int) – password random max length.

Returns:

a password of length between min_length and max_length, consists of symbols, digits and letters.

Return type:

str.