public String createRandomBytes(int byteNum){
  byte[] secretBytes=new byte[byteNum];
  secureRandom.nextBytes(secretBytes);
  return Base64.encode(secretBytes);
}

public String createRandomBytes ( int byteNum ) { byte [ ] secretBytes = new byte [ byteNum ] ; secureRandom . nextBytes ( secretBytes ) ; return Base64 . encode ( secretBytes ) ; }
generate a supplied number of random bytes . returning as a base64 encoded string .
