code: public static String encode(byte[] data)
    {
  	  StringBuffer result = new StringBuffer();
  
      for (int i = 0; i < data.length; i++) {
  	    result.append(trans[(data[i] >> 4) & 0xf]);
  	    result.append(trans[data[i] & 0xf]);
  	  }
  
      return result.toString();
    }
docs: <p>
  Encodes.
  </p>
  @param data Data to encode.
  @return Modhex.