This sample code can (hopefully) be used by any application presenting a change password dialog to the user. Different dialogs allow the user to enter a new password or change a previously entered password. Dialogs can be presented as either standalone modal windows or sheets. Furthermore the user is informed of any problems or weaknesses with the password via a text field. The algorithm used to compute password strength can be overriden. The algorithm supplied with this sample code uses a dictionary lookup to check the password strength.
Also included with this sample code is an Objective C class that implements the bloom filter algorithm, see http://www.google.com/search?q=bloom+filter
Download: PasswordPanel.zip
Screenshots: 
Update: Source code is now live on the Toxic Software subversion server:
http://toxic-public.googlecode.com/svn/tags/BlogTag_20070927_729/Projects/Misc/PasswordPanel/