List of utility methods to do Password Generate
String | generateString(String charSet, int len) generate String return generateString(charSet, len, len);
|
String[] | generateStrings(int count, int length) Generates an array of strings. String[] keys = new String[count]; for (int k = 0; k < keys.length; k++) { keys[k] = generateString(length); return keys; |
Map | generateStringsEntries(int cnt) generate Strings Entries Map<String, String> map = new HashMap<>(); for (int i = 0; i < cnt; i++) { map.put(Integer.toString(i), randomString(5)); return map; |
String | getDummyPassword() get Dummy Password Random rand = new Random(); return DUMMY_VALUE + rand.nextInt(999999); |