tl  tr
  Home | Tutorials | Articles | Videos | Products | Tools | Search
Interviews | Open Source | Tag Cloud | Follow Us | Bookmark | Contact   
 Tools and Libs > Ostermiller Utilities > Random Password Generator

Random Password Generator 

Ostermiller Java Utilities contain various components such as CSV parsing, Base64 Encoding, MD5 digest, String and Exec Helper classes. This requires the library ostermillerutils-1.08.01.jar to be in classpath. The following example shows using random password generator.

File Name  :  
com/bethecoder/tutorials/ostermillerutils/RandomPasswordGenTest.java 
Author  :  Sudhakar KV
Email  :  [email protected]
   
package com.bethecoder.tutorials.ostermillerutils;

import java.io.IOException;

import com.Ostermiller.util.RandPass;

public class RandomPasswordGenTest {

  /**
   @param args
   @throws IOException 
   */
  public static void main(String[] argsthrows IOException {
    
    RandPass randPass = new RandPass();
    System.out.println(randPass.getPass(8));
    
    randPass = new RandPass(new char [] { 'a''b''c''1''2''3' });
    System.out.println(randPass.getPass(8));
  }

}
   

It gives the following output,
fgM6y2YT
a2b2ccba



 
  


  
bl  br