Functions¶
-
secure_password.build_prev_password()¶ Build a previous password with: one character, one digit and one punctuation. This method is used to ensure that final password have at least one of the element mentioned above.
- Returns
(list) – return three elements chosen pseudo-randomly from CHARACTERS_TYPES[“characters”], CHARACTERS_TYPES[“digits”], CHARACTERS_TYPES[“punctuations”]
-
secure_password.generating_pseudo_random_pass(pass_length)¶ Generates a pseudo random pass.
- Parameters
pass_length (int) – Length of the pass that will be build.
- Returns
(list) – return a password, with pass_length - 3 (three elements put in the list by ‘build_prev_password()’) elements, build with elements chosen pseudo-randomly from CHARACTERS_TYPES[“all”]