fluidasserts.format.string module

This module allows to check Password and other text vulnerabilities.

fluidasserts.format.string.is_otp_token_insecure(password)

Check if a one-time password token is insecure.

A one-time password token is considered secure if it is at least 6 characters long.

Parameters

password (str) – Password to be tested.

Return type

bool

Returns

True if insecure, False if secure.

fluidasserts.format.string.is_ssid_insecure(ssid)

Check if a given SSID is insecure.

An SSID is considered secure if it is not a typical dictionary word such as “home” or “network”.

Parameters

ssid (str) – SSID to be tested.

Return type

bool

Returns

True if insecure, False if secure.

fluidasserts.format.string.is_system_password_insecure(password)

Check if a system password is insecure.

A system password is considered secure if it is at least 20 characters long and satisfies all other password criteria.

Parameters

password (str) – Password to be tested.

Return type

bool

Returns

True if password insecure, False if secure.

fluidasserts.format.string.is_user_password_insecure(password)

Check if a user password is insecure.

A user password is considered secure if it is at least 8 characters long and satisfies all other password criteria.

Parameters

password (str) – Password to be tested.

Return type

bool

Returns

True if password insecure, False if secure.