exceeds_maximum_length_ratio
Test that value is within a reasonable range of password.
def exceeds_maximum_length_ratio(
password: string,
max_similarity: float,
value: string
) - > boolean
Test that value is within a reasonable range of password.
Parameters
| Name | Type | Description |
|---|---|---|
| password | string | The reference password string used to establish the baseline length for comparison. |
| max_similarity | float | The maximum allowed similarity threshold used to calculate the length-based similarity bound. |
| value | string | The input string being tested to determine if its length relative to the password precludes it from exceeding the similarity limit. |
Returns
| Type | Description |
|---|---|
boolean | True if the length ratio between the password and the value is large enough to mathematically guarantee the similarity score cannot exceed the maximum threshold, False otherwise. |