Skip to content

canyapan/RandomPasswordGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomPasswordGenerator is a Java 1.5 compatible random password generation library.

Usage:

RandomPasswordGenerator passwordGenerator = new RandomPasswordGenerator()
  .withPasswordLength(8)
  .withLowerCaseCharacters(true)
  .withUpperCaseCharacters(true)
  .withDigits(true)
  .withSymbols(true)
  .withMinDigitCount(1)
  .withAvoidAmbiguousCharacters(true)
  .withForceEveryCharacterType(true);

String password = passwordGenerator.generate();