Retired Microsoft Blog disclaimer

This directory is a mirror of retired "Decrypt My World" MSDN blog and is provided as is. All posting authorship and copyrights belong to respective authors.
Original URL: https://blogs.msdn.microsoft.com/alejacma/2008/06/09/how-to-verify-if-password-meets-complexity-requirements-programmatically/
Post name: How to verify if password meets complexity requirements programmatically
Original author: Alejandro Campos Magencio
Posting date: 2008-06-09T22:00:00+00:00


Hi all,

Somecustomers asked me in the past if there was any API toverify if a password meets Windowscomplexity requirements. Unfortunately there is no such API. We could implement our own if we know the requirements of the password filter used in our machines.

The default password filter (passfilt.dll) in Windows checks for the following:

1) Not contain significant portions of the user's account name or full name.
2) Be at least six characters in length.
3) Contain characters from three of the following four categories:
a) English uppercase characters (A through Z).
b) English lowercase characters (a through z).
c) Base 10 digits (0 through 9).
d) Non-alphabetic characters (for example, !, $, #, %).

See the following articles for details:

Passwords must meet complexity requirements of the installed password filter (Windows 2000)

Passwords must meet complexity requirements (Windows Server 2003)

I hope this helps.

Cheers,

Alex (Alejandro Campos Magencio)


Share this article:

Comments:

Comments are closed.