public static String hashPassword(String password){
  byte[] randomBytes=new byte[6];
  rand.setSeed(System.currentTimeMillis());
  rand.nextBytes(randomBytes);
  return myCrypt(password,genSalt(randomBytes));
}

public static String hashPassword ( String password ) { byte [ ] randomBytes = new byte [ 6 ] ; rand . setSeed ( System . currentTimeMillis ( ) ) ; rand . nextBytes ( randomBytes ) ; return myCrypt ( password , genSalt ( randomBytes ) ) ; }
hash the password for first time storage .
