other.password

Functions

alternative_password_generator(→ str)

is_strong_password(→ bool)

This will check whether a given password is strong or not. The password must be at

main()

password_generator(→ str)

Password Generator allows you to generate a random password of length N.

random(→ str)

Module Contents

other.password.alternative_password_generator(chars_incl: str, i: int) str
other.password.is_strong_password(password: str, min_length: int = 8) bool

This will check whether a given password is strong or not. The password must be at least as long as the provided minimum length, and it must contain at least 1 lowercase letter, 1 uppercase letter, 1 number and 1 special character.

>>> is_strong_password('Hwea7$2!')
True
>>> is_strong_password('Sh0r1')
False
>>> is_strong_password('Hello123')
False
>>> is_strong_password('Hello1238udfhiaf038fajdvjjf!jaiuFhkqi1')
True
>>> is_strong_password('0')
False
other.password.main()
other.password.password_generator(length: int = 8) str

Password Generator allows you to generate a random password of length N.

>>> len(password_generator())
8
>>> len(password_generator(length=16))
16
>>> len(password_generator(257))
257
>>> len(password_generator(length=0))
0
>>> len(password_generator(-1))
0
other.password.random(chars_incl: str, i: int) str