NerdyPassword is a library to generat passwords. The library provides you with methods to easily generate passwords for your needs. The library is programed in Java.
- English isn’t my first language, so please excuse any mistakes.
- Contact me for proposals or questions.
- set password language (min, max)
- min one numer
- min one letter
- min one lower and one upper letter
- min one symbol
- block same character twice in a row
- generate characters password
- generate passwords
- set sequence of characters for password
- predefined security level
- choose what character shout be use for password (numbers, lower/upper letters, symbols)
- choose from predefined symbols lists
- add own symbol list
- generate password with randome characters
- set password language (min, max)
- min one numer
- min one letter
- min one lower and one upper letter
- min one symbol
- block same character twice in a row
- generate characters password
- generate passwords
- set sequence of characters for password
- predefined security level
- choose what character shout be use for password (numbers, lower/upper letters, symbols)
- choose from predefined symbols lists
- add own symbol list
- use leet speak in password
- generate password with randome characters
- generate password with words
- generate password with words and randome characters
NerdyPassword nerdyPassword = new NerdyPassword();
System.out.println(nerdyPassword.startGeneratingPassword());
If NerdyPassword() is use the default secure level is 1.
- Password length: 8
- Same character twice in a row: false
- Min one number: true
- Min one letter: true
- Min one lower and one upper letter: true
- Min one symbol: false
- Symbol lists: non
- Password length: 8 - 25
- Same character twice in a row: false
- Min one number: true
- Min one letter: true
- Min one lower and one upper letter: true
- Min one symbol: true
- Symbol lists: 1
- Password length: 25 - 50
- Same character twice in a row: false
- Min one number: true
- Min one letter: true
- Min one lower and one upper letter: true
- Min one symbol: true
- Symbol lists: 1, 2, 3
List 1 | List 2 | List 3 | List 4 | List 5 |
---|---|---|---|---|
'_' | '@' | '*' | ',' | '(' |
'-' | '#' | '+' | ';' | ')' |
'§' | '"' | '.' | '{' | |
'$' | '=' | ':' | '}' | |
'%' | '[' | |||
'&' | ']' | |||
'!' | '<' | |||
'?' | '>' |
Name | Return | Description | Throws |
---|---|---|---|
NerdyPassword | |||
resetAllSettings | void | ||
startGeneratingPassword | String | ||
startGeneratingPasswords | List<String> | ||
setPasswordlength | NerdyPassword | ||
allowSameCharTwiceInARow | NerdyPassword | ||
addNumbersToPosibilChars | NerdyPassword | ||
addLowerLettersToPosibilChars | NerdyPassword | ||
addUpperLettersToPosibilChars | NerdyPassword | ||
addSymbolListToPosibilChars | NerdyPassword | ||
addSymbolList1ToPosibilChars | NerdyPassword | ||
addSymbolList2ToPosibilChars | NerdyPassword | ||
addSymbolList3ToPosibilChars | NerdyPassword | ||
addSymbolList4ToPosibilChars | NerdyPassword | ||
addSymbolList5ToPosibilChars | NerdyPassword | ||
addOwnSymbolListToPosibilChars | NerdyPassword | ||
setCharTypeSequence | NerdyPassword | ||
setNumberNeeded | NerdyPassword | ||
setLetterNeeded | NerdyPassword | ||
setLowerUpperLetterNeeded | NerdyPassword | ||
setSymbollNeeded | NerdyPassword | ||
setSecureLVL | NerdyPassword |
NerdyPassword nerdyPassword = new NerdyPassword(2);
System.out.println(nerdyPassword.startGeneratingPassword());
NerdyPassword nerdyPassword = new NerdyPassword(8, true, true, true, true);
System.out.println(nerdyPassword.startGeneratingPassword());
NerdyPassword nerdyPassword = new NerdyPassword();
List<String> passwords = nerdyPassword.startGeneratingPasswords(100);
for (int i = 0; i < passwords.size(); i++) {
System.out.println(passwords.get(i));
}
NerdyPassword nerdyPassword = new NerdyPassword(0);
String password = nerdyPassword.setPasswordlength(10, 15).addSymbohList1ToPosibilChars().startGeneratingPassword();
System.out.println(password);
NerdyPassword nerdyPassword = new NerdyPassword(false);
if (nerdyPassword.startGeneratingPassword() == null) {
System.out.println(nerdyPassword.getErrorCode());
}
If startGeneratingPassword() returns a null, the error occurred.
NerdyPassword nerdyPassword = new NerdyPassword(false);
NerdyPassword nerdyPassword = new NerdyPassword();
nerdyPassword.resetAllSettings();
CharType[] charTypeSequence = new CharType[8];
charTypeSequence[0] = CharType.UPPER_LETTER;
charTypeSequence[1] = CharType.LOWER_LETTER;
charTypeSequence[2] = CharType.LOWER_LETTER;
charTypeSequence[3] = CharType.LOWER_LETTER;
charTypeSequence[4] = CharType.NUMBER;
charTypeSequence[5] = CharType.NUMBER;
charTypeSequence[6] = CharType.NUMBER;
charTypeSequence[7] = CharType.NUMBER;
NerdyPassword nerdyPassword = new NerdyPassword(0);
nerdyPassword.setCharTypeSequence(charTypeSequence);
System.out.println(nerdyPassword.startGeneratingPassword());
Name | Description |
---|---|
0 | No error or warning |
401 | Min password length have to be > 0. |
402 | Max password length have to be > 0. |
403 | Max password length have to be >= Min password length. |
501 | Min and max password length have to be the same for a charTypeSequence. |
502 | Password length have to be the same as the charTypeSequence.length. |
601 | No characters definet for the new password. |
701 | Numbers are needed but no numbers are definet for the new password. |
702 | Letters are needed but no letters are definet for the new password. |
703 | Lower/Upper letters are needed but no lower/upper letters are definet for the new password. |
704 | Symbols are needed but no symbols are definet for the new password. |
- Java 1.5 or higher
- Java 1.5
No Unit Tests defined.
- set password language (min, max)
- min one numer
- min one letter
- min one lower and one upper letter
- min one symbol
- block same character twice in a row
- generate characters password
- generate passwords
- set sequence of characters for password
- predefined security level
- choose what character shout be use for password (numbers, lower/upper letters, symbols)
- choose from predefined symbols lists
- add own symbol list
- generate password with randome characters
- give proposals
- report bugs
NerdyPassword is released under the AGPL-3.0 License.