Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorCommonPasswords

final class PhabricatorCommonPasswords
Phabricator Technical Documentation (Auth)

Check if a password is extremely common. Preventing use of the most common passwords is an attempt to mitigate slow botnet attacks against an entire userbase. See T4143 for discussion.

Tasks

Checking Common Passwords

  • public static function isCommonPassword($password) โ€” Check if a password is extremely common.
  • private static function loadWordlist() โ€” Load the common password wordlist.

Methods

public static function isCommonPassword($password)

Check if a password is extremely common.

Parameters
string$passwordPassword to test.
Return
boolTrue if the password is pathologically weak.

private static function loadWordlist()

Load the common password wordlist.

Return
map<string, bool>Map of common passwords.