edu.jhu.tmaj.util.crypt
Class RandomString

java.lang.Object
  extended by edu.jhu.tmaj.util.crypt.RandomString

public final class RandomString
extends java.lang.Object

Utility methods for generating random strings.


Constructor Summary
RandomString()
           
 
Method Summary
static java.lang.String getGoodPassword(int length)
          Returns a random password almost guaranteed to have both letters and numbers, but no special characters.
static java.lang.String getRandomString(int length)
          Returns a random string of a specified length.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomString

public RandomString()
Method Detail

getRandomString

public static java.lang.String getRandomString(int length)
Returns a random string of a specified length.


getGoodPassword

public static java.lang.String getGoodPassword(int length)
Returns a random password almost guaranteed to have both letters and numbers, but no special characters. Also, easy-to-confuse characters like the letter 0 and number zero are not used. Another example is the number 1 and the letter l.


main

public static void main(java.lang.String[] args)