Complexity Rules

Overview

When Require mixed characters is on, passwords must meet the requirements you select. To set it up, open the policy on the Policy tab (Policies in PRO), turn on the Require mixed characters card, check the requirements you want, and click Save. Each requirement is a checkbox of its own, and the card’s summary says how many of the seven are on, such as 3 of 7 on.

The Require mixed characters card of a policy

Character Type Requirements

An Uppercase Letter

When An uppercase letter is checked, passwords must contain at least one uppercase letter (A-Z).

A Lowercase Letter

When A lowercase letter is checked, passwords must contain at least one lowercase letter (a-z).

A Digit

When A digit (0–9) is checked, passwords must contain at least one digit (0 through 9).

A Special Character

When A special character is checked, passwords must contain at least one special character. Special characters are punctuation characters present on a standard US keyboard, as defined by the OWASP Password Special Characters list. These include characters such as !, @, #, $, %, and others.

Different Characters

A Number of Different Characters

When A number of different characters is checked, passwords must contain a minimum number of distinct characters. For example, the password “aabc” has three unique characters (a, b, c).

Set the threshold in the Different characters field. The value must be between 1 and 50 (default: 6).

Username Restrictions

Limit Characters From Their Name

When Limit characters from their name is checked, passwords cannot contain more than a specified number of consecutive characters from the user’s username or display name. This prevents users from basing their password on their own name.

Set the threshold in the Characters in a row from their name field. The value must be between 0 and 50 (default: 4).

For example, if set to 2 and the username is “Bart”, the password may contain “ba”, “ar”, or “rt”, but not “bar” or “art”. Setting the value to 0 prevents any character of the username or display name from appearing in the password.

Whatever the limit, each name the account carries — the complete username, and the complete display name when one is set — is always rejected outright, including when a name is short enough that it contains no run longer than the limit. With the default of 4, a user whose username is “bart” cannot use a password containing “bart”, even though “bart” is only four characters long.

Matching ignores letter case, so “Bar” and “bAR” are rejected just as “bar” is.

Restricted Characters

Some Characters Are Not Allowed

When Some characters are not allowed is checked, passwords cannot contain specific characters you define. This is useful for meeting legacy system integration constraints.

When you check it, a Characters not allowed field appears. Type each character individually to add it to the restricted list. Users will see an error if their password contains any of the restricted characters.

How Characters Are Counted

Wherever a rule counts characters — unique characters, the length of a run matched against the user’s username or display name, and the minimum and maximum password length (see Length Rules) — the count is in characters, not bytes. A character stored as several bytes, such as an accented letter (ł, é) or a Cyrillic, Greek, or CJK letter, counts once rather than once per byte.

A password written in a non-Latin alphabet is therefore measured on the same terms as an ASCII one: “hasło” is five characters, so it counts as five unique characters and fails a minimum length of six.

One caveat: an accent can also be typed as a separate combining mark following its base letter instead of as a single accented character. Written that way, the letter and the mark count as two characters toward the length rules, and as two distinct characters toward the unique-characters rule.