-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
I copied the sample code from the wiki page, but used common words like 'i',
'cool', etc.These words are certainly found in the dictionary but goes
undetected.
import com.platinum.dpv.*;
public class checkpwd {
public static void main(String[] args) {
try {
DictionaryPasswordValidator pDV = DictionaryPasswordValidator.getInstance();
if (pDV.isPasswordDictionaryBased("cool") == true) {
System.out.println("Password contains a dictionary word!");
} else {
{
System.out.println("Password is valid.");
}
}
} catch (Exception e) {
System.out.println("Failed!");
}
}
}
Original issue reported on code.google.com by bdsat...@gmail.com on 23 Jun 2012 at 9:46